mirror of
https://github.com/databasus/databasus.git
synced 2026-04-06 00:32:03 +02:00
PostgresUs container cannot connect to a local (non-Docker) PostgreSQL database on Linux #409
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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!