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

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?

Thanks

Hi,

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

1 Like