Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: for xxx_postgres_1 Cannot start service postgres: b'driver failed programming external connectivity on endpoint dataimobi-engine_postgres_

Practicing the docker with rails I came across this error it says that the network is already being used, but I already restarted the docker and it did not come back

If anyone can help me thank you

sudo docker-compose up
dataimobi-engine_redis_1 is up-to-date
Starting dataimobi-engine_postgres_1 ... error

ERROR: for dataimobi-engine_postgres_1 Cannot start service postgres: b'driver failed programming external connectivity on endpoint dataimobi-engine_postgres_1 (71c4198472ce305966f01574be2976c3fa0ccbfbfb8e0c4cf85ec9d17a30bb9d): Error starting userland proxy: listen tcp 0.0.0.0:5432: bind: address already in use'

ERROR: for postgres Cannot start service postgres: b'driver failed programming external connectivity on endpoint dataimobi-engine_postgres_1 (71c4198472ce305966f01574be2976c3fa0ccbfbfb8e0c4cf85ec9d17a30bb9d): Error starting userland proxy: listen tcp 0.0.0.0:5432: bind: address already in use' ERROR: Encountered errors while bringing up the project.`

like image 891
Hemershon Silva Avatar asked Dec 23 '22 01:12

Hemershon Silva


1 Answers

I solved by stoping the local postgresql, and disabling it.

sudo service postgresql stop

sudo update-rc.d postgresql disable
like image 173
Hemershon Silva Avatar answered Dec 28 '22 10:12

Hemershon Silva