Last active
September 6, 2017 12:24
-
-
Save ilmir-k/ff4a04d748fce5ebcebcae620ea5fb4a to your computer and use it in GitHub Desktop.
DB list in docker
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
# Open docker terminal | |
docker exec -i -u root -t $DB_CONTAINER /bin/bash | |
# Launch psql as POSTGRES_USER, e.g. odoo | |
psql -U odoo | |
# See existing DBs: | |
\l | |
# Quit from psql | |
\q | |
# Quit from docker | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment