DEV Community

John McGuin
John McGuin

Posted on • Originally published at blog.waysoftware.dev on

Shell into Containerized PostgreSQL Database

Shell into the running container:

docker exec -it <container-id> /bin/bash

Enter fullscreen mode Exit fullscreen mode

Run psql to connect to the database:

psql -d <db-name> -U <user>

Enter fullscreen mode Exit fullscreen mode

Top comments (0)