Dockerfile
for swarm
used on https://swarm-gateways.net and https://open.swarm-gateways.net
latest
- latest stable releaseedge
- latest build frommaster
v0.x.y
- specific stable release
PASSWORD
- required - Used to setup a sample Ethereum account in the data directory. If a data directory is mounted with a volume, the first Ethereum account from it is loaded, and Swarm will try to decrypt it non-interactively withPASSWORD
DATADIR
- optional - Defaults to/root/.ethereum
CONTAINER_NAME
- optional - Defaults tolocalhost
, used as a prefix for measurements and log lines
All Swarm command line arguments are supported and can be sent as part of the CMD field to the Docker container
$ docker pull ethdevops/swarm:latest
$ docker run -e PASSWORD=password123 -t ethdevops/swarm:latest -- \
--debug \
--verbosity 4
$ docker run -e PASSWORD=password123 -t ethdevops/swarm:latest -- \
--ens-api http://1.2.3.4:8545 \
--debug \
--verbosity 4
$ docker run -e PASSWORD=password123 -t ethdevops/swarm:latest -- \
--debug \
--metrics \
--metrics.influxdb.export \
--metrics.influxdb.endpoint "http://localhost:8086" \
--metrics.influxdb.username "user" \
--metrics.influxdb.password "pass" \
--metrics.influxdb.database "metrics" \
--metrics.influxdb.host.tag "localhost" \
--verbosity 4
$ docker run -e PASSWORD=password123 -t ethdevops/swarm:latest -- \
--debug \
--tracing \
--tracing.endpoint 127.0.0.1:6831 \
--tracing.svc myswarm \
--pprof \
--pprofaddr 0.0.0.0 \
--pprofport 6060
$ docker run -e DATADIR=/data -e PASSWORD=password123 -v /tmp/hostdata:/data -t ethdevops/swarm:latest -- \
--debug \
--verbosity 4