Docker Node Availablility


Example

Swarm Mode Node Availability:

  • Active means that the scheduler can assign tasks to a node.
  • Pause means the scheduler doesn’t assign new tasks to the node, but existing tasks remain running.
  • Drain means the scheduler doesn’t assign new tasks to the node. The scheduler shuts down any existing tasks and schedules them on an available node.

To change Mode Availability:

#Following commands can be used on swarm manager(s)
docker node update --availability drain node-1
#to verify:
docker node ls