Answers for "docker run postgres and connect to it"

SQL
2

connect to postgres database in docker container

$ docker exec -it postgres-container psql -U postgres
Posted by: Guest on July-28-2020
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 "docker run postgres and connect to it"

Code answers related to "SQL"

Browse Popular Code Answers by Language