Answers for "connect to docker postgres from localhost"

CSS
2

access postgre database on running docker container

docker exec -ti NAME_OF_CONTAINER psql -U YOUR_POSTGRES_USERNAME
Posted by: Guest on June-23-2021
2

docker run postgres locally

$ docker run -d --name my_postgres -v my_dbdata:/var/lib/postgresql/data -p 54320:5432 postgres:11
Posted by: Guest on March-18-2020

Code answers related to "connect to docker postgres from localhost"

Browse Popular Code Answers by Language