Add or update node labels.
Section: Swarm Basics
Add node label
bash
bash
docker node update --label-add zone=us-east-1a worker-1Explanation
Labels are useful for placement constraints.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Swarm Basics