Sign inSign up

calee0219/docker-geth-cluster

By calee0219

•Updated over 7 years ago

An Ethereum private node creator control with docker-compose

Image
0

452

calee0219/docker-geth-cluster repository overview

⁠docker-geth-cluster

using docker compose to build ethereum node cluster with docker and geth

Inspire by konradkonrad/docker-pyeth-cluster⁠

⁠Require

  • install docker, docker-compose
  • build docker image if you need
git clone https://github.com/konradkonrad/docker-geth-cluster.git
cd docker-geth-cluster
docker build -t calee0219/docker-geth-cluster .

⁠How to used

⁠Start mining
cd simple
docker-compose up --scale bootstrap=1 --scale eth=2 --scale miner=3

Where 1, 2, and 3 is how many node you want to create

⁠go inside and test
# enter docker
docker exec -it [contaoiner name] /bin/bash
# attach to geth
geth attach

⁠What's the node

  1. bootstrap: A bootstrap node for your network. You should always build it and build it only one node.

  2. eth: A normal node that will not mining

  3. miner: A mining node

⁠What you can change

Tag summary

Content type

Image

Digest

Size

258.4 MB

Last updated

over 7 years ago

docker pull calee0219/docker-geth-cluster