A docker swarm running in a 1.12-dind instance
200
Port 3000 is bound to the swarm master.
$ docker run --privileged --name swarm -d -p 3000:3000 thatsmrtalbot/dind-swarm:latest $ docker -H tcp://127.0.0.1:3000 info
All commands are passed to the swarm master "docker run" command, this means to bind ports you must -p in two locations.
$ docker run --privileged --name swarm -d -p 3000:3000 -p 80:80 thatsmrtalbot/dind-swarm:latest -p 80:80
This image takes a while to spin up. See its logs to keep track (wait until all 3 slaves have joined).
Content type
Image
Digest
Size
42 MB
Last updated
almost 10 years ago
docker pull thatsmrtalbot/dind-swarm