zulhfreelancer
11/22/2017 - 9:48 AM

Geth + JSON RPC on Docker

Geth + JSON RPC on Docker

Non-Docker Way

$ cd $HOME
$ nohup geth --testnet --fast --cache=512 --rpc --rpcaddr 0.0.0.0 --rpcapi="db,eth,net,web3,personal" --keystore $HOME/.ethereum/keystore &>/dev/null &
$ geth attach http://localhost:8545

Docker Way

$ docker run -d --name ethereum-node -v $HOME/ethereum:/root -p 8545:8545 -p 30303:30303 --restart=always ethereum/client-go:alpine --testnet --fast --cache=512 --rpc --rpcaddr 0.0.0.0

References