docker exec -it $(docker ps -a | grep <CONTAINER NAME> | awk '{print $1}') psql -d <DATABASE NAME> -U postgres
Last active
May 21, 2018 15:38
-
-
Save sotayamashita/29f44c8e44f74a43e83887028c4397b8 to your computer and use it in GitHub Desktop.
TIL: A shortcut to get PostgreSQL interactive terminal when you are in dockerized project
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment