Command Details

$ docker swarm init

Initialize a Docker swarm on the current node.

Related Commands

  • $ docker swarm init --advertise-addr <node_ip>Initialize a swarm and specify the advertise address.