Docker Community Forums

Share and learn in the Docker community.

Docker node cannot remove issue


(springme) #1

ubuntu@swarmmanager03:~$ docker node ls
ID HOSTNAME MEMBERSHIP STATUS AVAILABILITY MANAGER STATUS
3eyipj7nbvquy2r1ydt1d5m9x swarmmanager02 Accepted Ready Active Reachable
3fh381frthqsdt2r900sv9vwp * swarmmanager03 Accepted Ready Active Leader
50wfclgl03g2kpsdrphte0clh swarmworker03 Accepted Ready Active
62hcl7o5q0cjptagq14tmmtbu swarmworker02 Accepted Ready Active
68gca39upa401m2zx4p2s4oxr swarmworker01 Accepted Ready Active
a4famf99z4okxuxz3uwd080j3 swarmmanager Accepted Ready Active Reachable
c72z6nbftlgyv8o7ucc3j3ey8 Pending Down Active
ceahevqyilax9qp555lgciove Accepted Down Active
dohsc55s2otmg0xietot9zx51 Accepted Down Active
ubuntu@swarmmanager03:~$ docker node rm c72z
Error response from daemon: rpc error: code = 9 desc = node c72z6nbftlgyv8o7ucc3j3ey8 role is set to manager. It should be demoted to worker for safe removal
ubuntu@swarmmanager03:~$ docker node demote c72z
Error response from daemon: rpc error: code = 5 desc = can’t find manager in raft memberlist