DOCKER(1)

πŸ’– DOCKER(1) β€” the docker user manual, but make it a group chat πŸ’–

okay bestie, welcome to the Docker User Manuals ✨ this page is the whole docker(1) family vibe, and the specific little icon we're talking about today is docker swarm init β€” yes, the one that spins up a whole swarm like it's nothing. no cap. 🐝


🌸 NAME 🌸

docker-swarm-init β€” Initialize a swarm πŸ‘‘

like. that's the whole job. you say init, it inits. main character energy fr fr.


✨ SYNOPSIS ✨

docker swarm init [OPTIONS]

that's it, that's the summoning spell πŸͺ„ nothing but the command and whatever options you feel like sprinkling on top.


πŸ¦‹ DESCRIPTION πŸ¦‹

Initialize a swarm.

literally the entire description. short, sweet, iconic. it's giving "I said what I said" πŸ’… you run it, and boom β€” you got yourself a swarm. go off.


πŸŽ€ OPTIONS πŸŽ€

bestie there are fifteen of these and we're going through every single one because we don't skip. periodt. πŸ“

  • --advertise-addr="" β€” the address you're advertising. format is "[:port]" πŸ’Œ
  • --autolock[=false] β€” turn on manager autolocking. and what does that mean? it means you'll need an unlock key to start a stopped manager. so don't lose that key, I'm literally begging πŸ™ˆ
  • --availability="active" β€” how available this node is being. the options are "active", "pause", and "drain" 🌈
  • --cert-expiry=2160h0m0s β€” how long node certificates stay valid. units: ns|us|ms|s|m|h ⏳
  • --data-path-addr="" β€” address or interface used for data path traffic. format: "" πŸ›£οΈ
  • --data-path-port=0 β€” port number for data path traffic, and it has to be in the range 1024 - 49151. if you don't set a value, or you set it to 0, then the default port 4789 gets used instead. so like, no stress 🫢
  • --default-addr-pool=[] β€” the default address pool, in CIDR format 🏊
  • --default-addr-pool-mask-length=24 β€” the subnet mask length for that default address pool 🎭
  • --dispatcher-heartbeat=5s β€” dispatcher heartbeat period. units: ns|us|ms|s|m|h πŸ’“ (see, heartbeat, cute)
  • --external-ca= β€” specifications of one or more certificate signing endpoints πŸ”
  • --force-new-cluster[=false] β€” force create a brand new cluster from the current state. it's giving fresh start, rebrand, glow up πŸ’«
  • --listen-addr=0.0.0.0:2377 β€” the listen address. format: "[:port]" πŸ‘‚
  • --max-snapshots=0 β€” how many additional Raft snapshots to retain πŸ“Έ
  • --snapshot-interval=10000 β€” how many log entries go by between Raft snapshots πŸ”’
  • --task-history-limit=5 β€” task history retention limit. the past, but limited πŸ—‚οΈ

πŸ‘‘ SEE ALSO πŸ‘‘

docker-swarm(1) β€” go read that one next bestie, it's the parent page and it ate πŸ’…


mwah πŸ’œ that's the whole page. every flag, every default, every unit, every format β€” all accounted for, nothing skipped, nothing invented. iykyk.

this lil manual is from the Docker Community, version Oct 2026, and it lives in the Docker User Manuals section of the DOCKER(1) page. take care of it, she's doing her best βœ¨πŸŽ€πŸ¦‹πŸ’–

πŸ“¦ where this page comes from