报错“Error response from daemon: rpc error: code = Unknown desc = The swarm does not have a leader. It's possible that too few managers are online. Make sure more than half of the managers are online.”

 

 

今天在本机虚拟机想要查看一下swarm节点时报错

 

 

我们可以重新选举一下leader即可恢复正常!

 docker swarm init --force-new-cluster

 

 

 

posted @ 2022-04-24 17:58  屯子里唯一的架构师  阅读(530)  评论(0编辑  收藏  举报