- Deploy a private Ethereum testnet cluster with netstats using Docker
Additional Features
- Manage running containers using the Portainer GUI.
- Interact with your private blockchain using Etherwallet (account interface) and Ethersapp (contract interface)
docker-compose up -d
This will build the images and start the containers for:
- 1 Ethereum Bootstrapped container (acts as a primary node for the other nodes to connect)
- 1 Ethereum "Miner" container (which connects to the bootstrapped container on launch)
- 1 Netstats container (with a Web UI to view activity in the cluster) To access the Netstats Web UI:
http://localhost:3000
- 1 Addons container which gives you access to Ethersapp and MyEtherWallet. These are accessible via localhost:80/ethersapp and localhost:80/etherwallet
Note: you can remove the addons container by removing the last entry in the docker-compose.yml file.
There are 20 pre-funded accounts included. Keystore Files can be found in ./files/keystore Connect myetherwallet to the private testnet and obtain the private key for use in metamask if desired
You can manage the containers via the command line or using portainer.
Use the following Docker commands to deploy Portainer:
$ docker volume create portainer_data
$ docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer
Access the Portainer Dashboard via http://localhost:9000
Note: the -v /var/run/docker.sock:/var/run/docker.sock option can be used in Linux environments only.
docker exec -it *nameofcontainer* geth attach ipc://root/.ethereum/devchain/geth.ipc
docker ps -aq | xargs docker rm -f
docker images -aq | xargs docker rmi -f