Run Algorand in a Docker container
docker build -t algorand .
Default network is mainnet
docker run -d -p 8080:8080 --name algorand blockzilla/algorand-node
To run a specific version:
docker run -d -p 8080:8080 --name algorand blockzilla/algorand-node:v1.0.29
To run on testnet:
docker run -d -p 8080:8080 -e NETWORK=testnet --name algorand blockzilla/algorand-node
To run on devnet:
docker run -d -p 8080:8080 -e NETWORK=devnet --name algorand blockzilla/algorand-node
To obtain node status using docker exec
docker exec algorand /algorand/node/goal node status -d /algorand/node/data
Alternatively on your server copy the contents of bin to /usr/bin
, you can now run Algorand cli tools from the host against the Docker container using docker exec
goal node status
API will listen on localhost:8080
curl 127.0.0.1:8080/swagger.json
Credit to https://github.com/bjweaver/ for initial Docker file
Thanks
YGC67NIYZUPZCF3E6HTGIM2CZR7IIQUMFN4CIO77QYCGGBVZBAL3P4BTRQ