Search code examples
dockerdocker-composedocker-swarmdocker-stack

docker stack deploy from compose file - all services one node?


I have a docker-compose file with 10 services (containers). I have it configured one instance of each server.

When I execute the stack deploy, all 10 services go to one node (manager).

I trust that adding a second instance of a service will distribute it, but I want my 10 unique services distributed.


Solution

  • If you are using a private registry its important to share the login and credentials with the worker nodes by using

    docker stack deploy --with-registry-auth