Docker Community Forums

Share and learn in the Docker community.

New swarm mode : how to force manager-only nodes?

(Nxwdjll) #1

hello there,

while going through the swarm mode tutorial, the “helloworld” containers got scheduled and deployed in managers as well as workers… (test made using 1.12 GA)

can you confirm this behaviour ? how do I force nodes to be “managers” only ? through labels?


(Nikolas Hermann) #2


you have to drain the manager nodes to make them not act as workers anymore:
docker node update --availability drain <NODE-ID>