HUB
Sign inSign up
eth logo

11notes/eth

By 11notes

•Updated about 3 years ago

Ethereum geth

Image
0

857

11notes/eth repository overview

⁠Alpine :: Ethereum

size version pulls activity commit-last

Run an Ethereum node based on Alpine Linux. Small, lightweight, secure and fast 🏔️

⁠Volumes

  • /geth/etc - Directory of config.toml
  • /geth/var - Directory of all blockchain data

⁠Run

docker run --name eth \
  -v .../etc:/geth/etc \
  -v .../var:/geth/var \
  -d 11notes/eth:[tag]
# start container with custom configuration
docker run --name eth \
  -v ../geth/var:/geth/var \
  -d 11notes/eth:[tag] \
    geth \
      --datadir "/geth/var" \
      --config "/geth/etc/config.toml"  \
      --syncmode=snap \
      --cache 66560  \
      --bloomfilter.size 16384 \
      --txlookuplimit 0 \
      --ws \
        --ws.addr 0.0.0.0 \
        --ws.api net,eth,web3,txpool \
        --ws.origins '*' \
      --http \
        --http.addr 0.0.0.0 \
        --http.api net,eth,web3,txpool \
        --http.corsdomain '*' \
      --authrpc.addr 0.0.0.0 \
      --authrpc.port 8551 \
      --authrpc.vhosts '*' \
      --maxpeers 512 \
      --nat extip:${ETH_WAN_IP} \
      --log.json \
      --metrics \
        --metrics.expensive \
        --metrics.influxdbv2 \
        --metrics.influxdb.endpoint "http://127.0.0.1:8086" \
        --metrics.influxdb.token "***********************" \
        --metrics.influxdb.organization "Ethereum" \
        --metrics.influxdb.bucket "eth" \
        --metrics.influxdb.tags "host=eth"

# stop container
docker stop -t 600 eth

⁠Defaults

ParameterValueDescription
userdockeruser docker
uid1000user id 1000
gid1000group id 1000
home/gethhome directory of user docker

⁠Parent image

⁠Built with and thanks to

⁠Tips

  • Increase cache as much as you can (64GB+ recommended)
  • Don't kill container, stop gracefully with enough time to sync RAM to disk!
  • Only use rootless container runtime (podman, rootless docker)
  • Don't bind to ports < 1024 (requires root), use NAT/reverse proxy (haproxy, traefik, nginx)

Tag summary

Content type

Image

Digest

sha256:6bd81ef8a…

Size

66.5 MB

Last updated

about 3 years ago

docker pull 11notes/eth:1.13.4