To get started using Ethereum GETH download and Install GETH from Docker or the GETH home page. On their website you can find download information and links to their help forums. Everything on their site is well documented to help you get started.
Helpful GETH Resources
- It is also important to read this GETH getting started documentation
- If you need help you can ask questions on the Gitter community
- If you decide to use Docker for your GETH implementation the please read the configuration information on this page.
- Always keep security in mind and trust no one.
Starting GETH from Docker
To run GETH in docker one can start with the following commands:
docker run -d --name GETH -v /Users/somefolder/ethereum:/root \
-p 8545:8545 -p 30303:30303 \
ethereum/client-go
Information about the configuration string above
- You can add extra flags to the start up script.
- -d = run in detached mode so the terminal window does not need to stay up on your PC
- GETH = Container name
- /users/eth = the directory
- –rpc = enable rpc requests, so you can connect with web3.js, web3.py, etc.
--rpcapi
defines what APIs are available over RPC- Optional
--txpool.globalslots
= 250000 and--txpool.globalqueue
= 50000 increases the number of slots available for the transaction pool. This this is not defined then it will ignore other pending transactions once it reaches the default of 4096. - maxpeers =80 = Maximum number of peers to connect your node to
console
it will open a console where you can run commands in
Other GETH Commands
- eth.accounts – lists accounts
- txpool.inspect – shows the transaction pool
- miner.start() – starts the miner in geth
For a complete list of GETH commands
https://geth.ethereum.org/docs/interface/command-line-options
** Be careful and make sure you read all documentation and you lock down your node * *
** security needs to be a priority**
3 thoughts on “Ethereum GETH Node Configuration in Docker”