Dockerfile for swarm
latest- latest stable releaseedge- latest build frommasterv0.x.y- specific stable release
PASSWORD- required - Used to setup a sample PUFFScoin 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 withPASSWORDDATADIR- optional - Defaults to/root/.puffscoinCONTAINER_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 puffsdevops/swarm:latest
$ docker run -e PASSWORD=password123 -t puffsdevops/swarm:latest \
--debug \
--verbosity 4
$ docker run -e PASSWORD=password123 -t puffsdevops/swarm:latest \
--ens-api http://1.2.3.4:11363 \
--debug \
--verbosity 4
$ docker run -e PASSWORD=password123 -t puffsdevops/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 puffsdevops/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 puffsdevops/swarm:latest \
--debug \
--verbosity 4