:globe_with_meridians: Easily deploy a scaleable Ethereum Testnet using Docker
Additional Features
docker-compose up -d
This will build the images and start the containers for:
When starting for the first time it will take a few minutes for the miner to generate the DAG before you start seeing mined blocks
Note: you can remove the addons container by removing the last entry in the docker-compose.yml file.
If you want additional miners in the test network you can simply run the following command replacing ‘X’ with the number of desired miners.
docker-compose up -d --scale ethminer=X
There are 20 pre-funded accounts included.
Keystore Files and Private Keys can be found in ./files/keystore
You can connect to the network RPC (metamask, remix, mew, etc.) using http://localhost:8545
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
# run the script
./dockerlint.sh
## or manually
docker ps -aq | xargs docker rm -f
docker images -aq | xargs docker rmi -f