Skip to content

Instantly share code, notes, and snippets.

@ilmir-k
Last active September 6, 2017 12:24
Show Gist options
  • Save ilmir-k/ff4a04d748fce5ebcebcae620ea5fb4a to your computer and use it in GitHub Desktop.
Save ilmir-k/ff4a04d748fce5ebcebcae620ea5fb4a to your computer and use it in GitHub Desktop.
DB list in docker
# 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