PostgresUs container cannot connect to a local (non-Docker) PostgreSQL database on Linux #409

Closed
opened 2026-04-05 16:16:24 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @nesgarbo on 11/14/2025

Hi
I'm having trouble connecting PostgresUs (running inside Docker, using the default run command) to a local PostgreSQL instance running directly on the host (not inside Docker). I'm not sure if the problem is networking, DNS resolution, or something else, but the container simply cannot reach the host database.
I can't connect via host.docker.internal, localhost, the Docker gateway IP, or any other hostname/IP I've tried. The container just can't reach the host’s PostgreSQL, even though PostgreSQL is listening on all interfaces on the host machine.
Am I missing something?
Thanks!

*Originally created by @nesgarbo on 11/14/2025* Hi I'm having trouble connecting PostgresUs (running inside Docker, using the default run command) to a local PostgreSQL instance running directly on the host (not inside Docker). I'm not sure if the problem is networking, DNS resolution, or something else, but the container simply cannot reach the host database. I can't connect via host.docker.internal, localhost, the Docker gateway IP, or any other hostname/IP I've tried. The container just can't reach the host’s PostgreSQL, even though PostgreSQL is listening on all interfaces on the host machine. Am I missing something? Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/databasus#409