CmdID / docker / docker swarm
docker swarm init
Initialize a swarm Docker CLI reference
15 options Its page in the Docker CLI reference
Options
--advertise-addrAdvertised address (format: <ip\--autolockEnable manager autolocking (requiring an unlock key to start a stopped manager)--availabilityAvailability of the node (active, pause, drain)--cert-expiryValidity period for node certificates (ns\--data-path-addrAddress or interface to use for data path traffic (format: <ip\--data-path-portPort number to use for data path traffic (1024 - 49151).--default-addr-pool-mask-lengthdefault address pool subnet mask length--default-addr-pooldefault address pool in CIDR format--dispatcher-heartbeatDispatcher heartbeat period (ns\--external-caSpecifications of one or more certificate signing endpoints--force-new-clusterForce create a new cluster from current state--listen-addrListen address (format: <ip\--max-snapshotsNumber of additional Raft snapshots to retain--snapshot-intervalNumber of log entries between Raft snapshots--task-history-limitTask history retention limit