Docker Community Forums

Share and learn in the Docker community.

Compose does not use swarm mode to deploy services to multiple nodes in a swarm

Hi, I am having the Docker Engine running in swarm mode with 2 nodes showing at docker node ls.
docker version 1.12.16, docker-compose 1.11.
When doing docker-compose up I get:
"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."
However docker: ‘stack’ is not a docker command.

Please advise, do you see another way to scale in a local network to place containers on different machines?
Thanks,
Nicu

I recommend you to upgrade to docker 1.13 that it does support compose file v3 and you will able to run docker stack deploy.