Created
December 31, 2018 12:19
-
-
Save xpepermint/2ce1d9aaa134db8fed1b90c87292a373 to your computer and use it in GitHub Desktop.
Geth setup with Docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
docker run -d \ | |
--name geth-test \ | |
-p 8545:8545 \ | |
-v ~/.docker/machine/volumes/geth-test/data:/root/.ethereum \ | |
ethereum/client-go \ | |
--testnet \ | |
--rpc \ | |
--rpcaddr "0.0.0.0" \ | |
--rpccorsdomain "*" \ | |
--rpcapi "db,eth,net,web3,personal,web3" \ | |
--cache=512 | |
``` | |
``` | |
docker exec -it geth-test geth console --port 35555 | |
``` | |
``` | |
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":67}' http://localhost:8545 | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment