我已经启用了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用于管理器节点离开群.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。