Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ruizfrontend/bcc4237b11a4e136b4e6e5ea94d332a9 to your computer and use it in GitHub Desktop.
Save ruizfrontend/bcc4237b11a4e136b4e6e5ea94d332a9 to your computer and use it in GitHub Desktop.
Docker import/export postgres db from running container
cat DUMPFILE | docker exec -i CONTAINER pg_restore -U postgres -d DATABASE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment