I have enabled docker swarm for local testing. Now, whenever trying to deploy using docker-compose up I see the following warning:
docker-compose up
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.
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 stack deploy
How can I disable docker swarm mode?
docker swarm leave is used when you want a worker node to leave from swarm , while docker swarm leave --force is for a manager node to leave the swarm.
docker swarm leave
docker swarm leave --force
1.4m articles
1.4m replys
5 comments
57.0k users