On the host machines, make sure the Docker Engine daemon is running.
1. Open a terminal and ssh onto the system where your manager node will be installed.
2. To create a new swarm, use the following command: —advertise-addr MANAGER-IP $ docker swarm init
3. To see the current condition of the swarm, run docker info.
4. To view information about nodes, use the docker node ls command.