Mark a node unavailable for task scheduling.
Section: Swarm Basics
Drain a node
bash
bash
docker node update --availability drain worker-1Explanation
Useful before maintenance or draining workloads.
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