Docker Swarm Jobs Walkthrough

Docker Swarm Jobs Walkthrough

Docker Swarm Job support is almost here. Let’s test it out.

Support for running “one-off” jobs in Docker Swarm is one of the most long awaited features in Swarm. The code will be included in Docker 20.03.0 but is available now for testing. Using Multipass : https://multipass.run you can setup a 3 node Docker Swarm in a few minutes and start playing about with Swarm Jobs.

[…]

Login to each VM, install the Docker .deb packages and start docker.

[…]

At this point we can leave the terminals as they are. Docker is running on each.

[…]

swarm-node-1 :sudo docker swarm initYou will get a string like “docker swarm join — token”. Copy that string which has a unique token in it and run this command on swarm-mode-2 and swarm-mode-3.

[…]