$ docker swarm init
Initialize a Docker swarm on the current node.
$ docker swarm init --advertise-addr <node_ip>