Docker Swarm | How to stop the Manager to act as Worker

Опубликовано: 21 Июль 2017
на канале: Yogesh Mehta
2,628
like

Docker Swarm Manager act as Worker too ?

Yes , by default all managers acts as worker nodes. Main reason is, in a single manager node cluster, you can run commands like docker service create and the scheduler will place all tasks on the local Engine.


How Can I stop the Manager to Stop acting as worker ?

To prevent the scheduler from placing tasks on a manager node in a multi-node swarm, set the availability for the manager node to Drain. The scheduler gracefully stops tasks on nodes in Drain mode and schedules the tasks on an Active node. The scheduler does not assign new tasks to nodes with Drain availability.