Difficulty: beginner
Estimated Time: 10 minutes

Docker Swarm Playground

Containerized Playground


Use vi, nano or micro to edit files.

Use docker help or man docker <command> for docs.

Use ssh [email protected] to login to host01 – if needed!

Use cd /home/scrapbook to find other scenarios.

Use make followed by <tab> to call targets.


Init Swarm

docker swarm init

Join Swarm

token=$(docker -H [[HOST1_IP]]:2345 swarm join-token -q worker) && docker swarm join [[HOST1_IP]]:2377 --token $token

List nodes


You cannot destroy anything - try rm -f / and restart containers!

Terminal Host 2