Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readme - Docker create command #2

Open
ranokuhl opened this issue Dec 13, 2019 · 1 comment
Open

Readme - Docker create command #2

ranokuhl opened this issue Dec 13, 2019 · 1 comment

Comments

@ranokuhl
Copy link

ranokuhl commented Dec 13, 2019

Suggest to change command line:

docker create --name postgres-demo -e POSTGRES_PASSWORD=Welcome -p 5432:5432 postgres:11.5-alpine

into:

docker create --name postgres-demo -e POSTGRES_PASSWORD=Welcome -p 5432 postgres:11.5-alpine

If you run the docker create command with 5432:5432 and then type

docker start postgres-demo

will give the following error message on Linux Mint 19.1:

Error response from daemon: driver failed programming external connectivity on endpoint postgres-demo (91725e72a055c90304ae19f52e5b78cbdbb4a979c341863e19e35045aa938452): Error starting userland proxy: listen tcp 0.0.0.0:5432: bind: address already in use
Error: failed to start containers: postgres-demo
@sk112
Copy link

sk112 commented Dec 19, 2019

bind: address already in use means 5432 is already in listening state i.e., already being used by another application.
Try -p 5431:5432.

Im curious though. did this one docker create --name postgres-demo -e POSTGRES_PASSWORD=Welcome -p 5432 postgres:11.5-alpine work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants