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 to0, then the default port4789gets 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
- alpine 3.24: docker-doc 29.9.2-r0 Β· Apache-2.0
- fedora 43: docker-cli 29.8.2-2.fc43
- fedora 43: docker-cli 29.9.2-2.fc43 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT
- fedora 44: docker-cli 29.8.2-2.fc44
- fedora 44: docker-cli 29.9.2-2.fc44 Β· Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND MIT
- opensuse-leap 16.0: docker 29.7.2_ce-160000.8.1 Β· Apache-2.0
- opensuse-leap 16.0: docker 29.7.2_ce-160000.8.1 Β· Apache-2.0
- opensuse-leap 16.0: docker 29.7.2_ce-160000.8.1 Β· Apache-2.0
- opensuse-leap 16.0: docker 29.7.2_ce-160000.8.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms