Not able to deploy to swarm using docker stack deploy

docker
swarm

(uday) #1

Creating service st2-docker_postgres
failed to create service st2-docker_postgres: Error response from daemon: The network st2-docker_private cannot be used with services. Only networks scoped to the swarm can be used, such as those created with the overlay driver.


(uday) #2

(Lindsay Hill) #3

That docker-compose file is not designed to be used unmodified with Swarm. You’ll need to figure out what modifications are required. This will probably depend on your site configuration.