Error Response from daemon: failed driver External Connectivity on endpoint

Asked

Viewed 2,430 times

3

Someone’s been through this mistake?
I’m trying to run the postgres via Docker but prints an error.

sudo docker start database

Error response from daemon failed programming external connectivity on endpoint database (9dcb5288477f88c9ff1ed918beccf6fa2710bb052aca5a278788bd83be5ea80a): Error starting userland proxy: listen tcp 0.0.0.0:5432: bind: address already in use
Error: failed to start containers: database

inserir a descrição da imagem aqui

  • You should have another service running on port 5432, or even another instance of the same container.

  • This is Docker version bug, upgrade to 19x that solves.

  • Upgrading Docker to version 19 does not solve the problem. The way is to change port.

1 answer

1

The address you are trying to direct port 5432 is already in use by another application if you are using Docker-Compose, use the tag

port:
- 5431:5432

Browser other questions tagged

You are not signed in. Login or sign up in order to post.