Created
July 15, 2024 10:13
-
-
Save sushant12/93198e781ac003bceb3e4afc13ad6ff1 to your computer and use it in GitHub Desktop.
import sql file into pg 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
docker cp dumpfile.sql container-name:dumpfile.sql | |
docker exec -it container-name bash | |
psql -U <username> -d <database_name> -f /dumpfile.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment