加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

如何禁用docker swarm模式?

发布时间:2020-12-16 03:28:47 所属栏目:安全 来源:网络整理
导读:我已经启用了docker swarm进行本地测试.现在,每当尝试使用docker-compose进行部署时,我都会看到以下警告: WARNING: The Docker Engine youre using is running in swarm mode. Compose does not use swarm mode to deploy services to multiple nodes in a

我已经启用了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用于管理器节点离开群.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读