Command Details

$ docker swarm init --advertise-addr <node_ip>

Initialize a swarm and specify the advertise address.