Docker Community Forums

Share and learn in the Docker community.

Can't remove node


(Mike Sandman) #1

How do I remove the node below that says pending/unkown?

jack@jackbook:~/Development/src/github.com/advizex/tools [docker-host-1]
$ docker node ls
ID                           HOSTNAME       MEMBERSHIP  STATUS   AVAILABILITY  MANAGER STATUS
237oe7s3pjgvy8c744s4uymjr    docker-host-4  Accepted    Ready    Active        
2833k7x9luam8dit0tg8wqssz    docker-host-3  Accepted    Ready    Active        
2evm9e21vzv152t3c89gg5nl2    docker-host-2  Accepted    Ready    Active        
3jglp9bq6hmkd4r5qm651tlbg    docker-host-6  Accepted    Ready    Active        
9lf1vjgqd63jp3eyjoj4im13r    docker-host-5  Accepted    Ready    Active        
arqvd3up1l290k2aicxr33av9 *  docker-host-1  Accepted    Ready    Active        Leader
cpwilvlp5ecz7r6vp65selm64                   Pending     Unknown  Active        

Tried to remove it but reports as a manager here

jack@jackbook:~/Development/src/github.com/advizex/tools [docker-host-1]
$ docker node rm cpwilvlp5ecz7r6vp65selm64
Error response from daemon: rpc error: code = 9 desc = node cpwilvlp5ecz7r6vp65selm64 role is set to manager. It should be demoted to worker for safe removal

Tried to demote it, says it doesn’t exist. Huh?

jack@jackbook:~/Development/src/github.com/advizex/tools [docker-host-1]
$ docker node demote cpwilvlp5ecz7r6vp65selm64
Error response from daemon: rpc error: code = 5 desc = can't find manager in raft memberlist