Last active
January 30, 2019 21:18
-
-
Save gh0st026/708939c5d8ab2fc3244ecb20f79b78b4 to your computer and use it in GitHub Desktop.
import PostGRE SQL into Docker Container
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
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