How do I connect to a Postgresql set up on docker, running on local host, with dbeaver? How do I connect to a Postgresql set up on docker, running on local host, with dbeaver? docker docker

How do I connect to a Postgresql set up on docker, running on local host, with dbeaver?


If you got here from the official Postgres Docker page, don't forget to add the port-forwarding flag -p 5432:5432 to your initialization command like Rioh did above:

docker run --name RiohRoweDB -e POSTGRES_PASSWORD=Charlie -d -p 5432:5432 postgres

Also consider studying this how-to on Medium:

https://medium.com/@wkrzywiec/database-in-a-docker-container-how-to-start-and-whats-it-about-5e3ceea77e50


If you're using Docker Toolbox, programs on the host need to use the IP address from docker-machine ip, usually 192.168.99.100, to reach container processes; localhost won't work. – David Maze