Problem Statement
Which command initializes a new Docker Swarm on a host?
Explanation
The `docker swarm init` command turns a Docker host into a manager node of a swarm. After that other nodes may join as manager or worker. It sets up the Raft store, leadership election and enables swarm mode.
Code Solution
SolutionRead Only
docker swarm init --advertise-addr 192.168.0.10
