Hi everyone,
What is the reason why when I try to start a PostgreSQL container I get the error below?
postgres (Expected state running but got error: Error response from daemon: driver failed programming external connectivity on endpoint r-x-postgres-1-03f31043 (3b8469d29f89fda0da9a6cc9497f07760e87c1639f5dd8dccc900fcdc16ddd9d): Error starting userland proxy: listen tcp 0.0.0.0:5432: bind: address already in use).
The host is not running anything else (besides Rancher system containers).
rancher/scheduler:v0.8.2
rancher/agent:v1.2.6
rancher/dns:v0.15.1
rancher/network-manager:v0.7.4
rancher/metadata:v0.9.2
rancher/healthcheck:v0.3.1
rancher/net:v0.11.2
rancher/net:holder
rancher/net:v0.11.2
The server is running version
1.6.8
On the host, I have tried to see if anything is listening on port 5432 but it seems to me that is not the case.
ps -fp 5432
UID PID PPID C STIME TTY TIME CMD
For a complete picture, here my compose file
postgres:
image: apply/postgres
volumes:
- /usr/postgres/data:/var/lib/postgresql/data
- /usr/postgres/dump:/usr/postgres-dump
environment:
POSTGRES_PASSWORD: nm4x2ft2
DATABASE_URL: postgres://postgres:nm4x2ft2@localhost:5432/apply
ports:
- 5432:5432
network_mode: “bridge”
Thanks