Skip to content

Instantly share code, notes, and snippets.

@gh0st026
Last active January 30, 2019 21:18
Show Gist options
  • Save gh0st026/708939c5d8ab2fc3244ecb20f79b78b4 to your computer and use it in GitHub Desktop.
Save gh0st026/708939c5d8ab2fc3244ecb20f79b78b4 to your computer and use it in GitHub Desktop.
import PostGRE SQL into Docker Container
CONTAINER_NAME=Container
DUMP_FILE=dump.sql
cat ${DUMP_FILE} | sudo docker exec -i ${CONTAINER_NAME} psql -U postgres
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment