Error response from daemon: rpc error: code = FailedPrecondition

Anna ·
更新时间:2024-11-13
· 953 次阅读

删除docker swarm下的节点报错:
Error response from daemon: rpc error: code = FailedPrecondition desc = node y2qsyjdbfmm4tjwh4p9wqlmq1 is not down and can’t be removed

解决(需要把active状态的节点的docker服务关闭;同时在manager节点中修改掉该节点的AVAILABILITY状态):

[vagrant@centos-node2 ~]$ sudo service docker stop Redirecting to /bin/systemctl stop docker.service [vagrant@centos-node1 ~]$ docker node ls ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION 875ul8zt886yee5bp115xevpe * centos-node1 Ready Active Leader 19.03.5 y2qsyjdbfmm4tjwh4p9wqlmq1 centos-node2 Down Active 19.03.5 [vagrant@centos-node1 ~]$ docker node update --help [vagrant@centos-node1 ~]$ docker node update --availability drain y2qsyjdbfmm4tjwh4p9wqlmq1 [vagrant@centos-node1 ~]$ docker node rm y2qsyjdbfmm4tjwh4p9wqlmq1
作者:笑笑霸



FROM error rpc daemon response

需要 登录 后方可回复, 如果你还没有账号请 注册新账号
相关文章