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

0 votes

Hi Team,

I have enabled the docker swarm for local testing. Now, whenever trying to deploy using docker-compose up command. It is showing me the below warning.

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.
Dec 28, 2020 in Docker by akhtar
• 38,230 points
2,906 views

1 answer to this question.

0 votes

Hi@akhtar,

You are getting this warning because your system is in docker mode. So you need to use the swarm command. Otherwise, you need to leave the swarm mode using the below command.

$ docker swarm leave
answered Dec 28, 2020 by MD
• 95,440 points

Related Questions In Docker

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Can you use docker-compose files to start services in Docker 1.12 swarm-mode?

Yess, you can. you must download/install the ...READ MORE

answered Aug 10, 2018 in Docker by Kalgi
• 52,360 points
438 views
0 votes
0 answers
+2 votes
1 answer
+2 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 58,090 points
2,468 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP