docker-archive / classicswarm

Swarm Classic: a container clustering system. Not to be confused with Docker Swarm which is at https://github.com/docker/swarmkit
Apache License 2.0
5.75k stars 1.08k forks source link

Port redirection not working with docker swarm #2977

Closed ukreddy-erwin closed 4 years ago

ukreddy-erwin commented 4 years ago

docker service create --name postgres1 --publish 5432:5432 uday1kiran/postgres:9.6.10

working but

docker service create --name postgres1 --publish 9000:5432 uday1kiran/postgres:9.6.10

not working.

Service is created but not able to connect to db. database:postgres user: postgres password: postgres

creating an individual container working.

justincormack commented 4 years ago

This repo is not for Docker swarm you are looking for https://github.com/docker/swarmkit