- container name:
ces-postgres
- database name:
capacity-estimation-service
docker cp .\file.sql ces-postgres:/my_folder
docker exec -it ces-postgres sh
psql postgres -h localhost -d capacity-estimation-service -f file.sql
ces-postgres
capacity-estimation-service
docker cp .\file.sql ces-postgres:/my_folder
docker exec -it ces-postgres sh
psql postgres -h localhost -d capacity-estimation-service -f file.sql
Get-Content "path to dump.sql" | docker exec -i docker-container psql -U postgres_user -v -d "databaseName"