如何禁用docker swarm模式?

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

相关文章

文章浏览阅读8.8k次,点赞2次,收藏7次。本文介绍Docker Com...
文章浏览阅读1.5w次,点赞7次,收藏76次。原网提供的教程需要...
文章浏览阅读940次,点赞20次,收藏20次。通过 docker run 命...
文章浏览阅读1k次,点赞20次,收藏20次。Podman 是一个开源的...
文章浏览阅读2.1k次。请注意,这些命令需要在 Docker 主机上...
文章浏览阅读1.1k次,点赞37次,收藏40次。nacos搭建集群连接...