Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
docker swarm 101

Docker Swarm 101

create few machines first...

docker-machine create --driver virtualbox mgr1
docker-machine create --driver virtualbox wrk1
docker-machine create --driver virtualbox wrk2
docker-machine create --driver virtualbox wrk3

setup of swarm hosts.

setup manager node.

eval $(docker-machine env mgr1)
docker swarm init --advertise-addr 192.168.99.100

setup worker node (wrk1, wrk2, wrk3)

eval $(docker-machine env wrk1)
docker swarm join     --token SWMTKN-1-6976trw9m8nfq7kzwggi5fav5jab9g4alzweujie1lx8351mea-alinzno5mexivjcmzqp9q8ons     192.168.99.100:2377
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.