我已经启用了docker swarm进行本地测试.现在,每当尝试使用docker-compose进行部署时,我都会看到以下警告:
WARNING: The Docker Engine you’re using is running in swarm mode.
Compose does not use swarm mode to deploy services to multiple nodes
in a swarm. All containers will be scheduled on the current node.To deploy your application across the swarm,use
docker stack deploy
.
如何禁用docker swarm模式?
最佳答案
当您希望工作节点从群中离开时使用docker swarm leave,而docker swarm请假–force用于管理器节点离开群.