Created
September 5, 2017 14:43
-
-
Save jjhamshaw/88c999b9d38e93994a94c4987e02c25e to your computer and use it in GitHub Desktop.
connect to your docker postgres container and run psql, without having to specify a container name or ID
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker exec -it $(docker ps -q --filter "name=postgres") psql -U postgres |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment