Skip to content

Instantly share code, notes, and snippets.

@kevinejohn
Last active January 8, 2018 21:43
Show Gist options
  • Save kevinejohn/f551e6e488b4046ac593f080ccb89c74 to your computer and use it in GitHub Desktop.
Save kevinejohn/f551e6e488b4046ac593f080ccb89c74 to your computer and use it in GitHub Desktop.
Run ethereum client on coreos docker image
# Run detatched client in the background
docker run -it --rm -d -p 8545:8545 -p 30303:30303 -v /root/.ethereum:/root/.ethereum --name geth ethereum/client-go
# Connect to client's console
docker run -it --rm -v /root/.ethereum:/root/.ethereum ethereum/client-go attach
# Testing contracts on testnet
docker run -it --rm -v /root/testnet3301/.ethash:/root/.ethash -v /root/script.js:/root/script.js ethereum/client-go --maxpeers 0 --nodiscover --networkid 3301 js /root/script.js 2>> geth.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment