:docker node ls 

报错:

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.

解决方法:

docker swarm init --force-new-cluster
 

     

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐