Difficulty: Beginner
Estimated Time: 10 minutes

Let's learn the Basic commands for Docker Swarm through this exercise.

Don’t stop now! The next scenario will only take about 10 minutes to complete.

Docker Swarm 1 - Get Started

Step 1 of 14

Initialize Swarm

Initialize docker swarm using below command in Host 1.

docker swarm init

Host 1 is now the Swarm manager.

You will also find the command being displayed to join the swarm as a worker.