0

Hi im trying to import my .sql with the creation of tables and inserts into a container database with postgres, something like this...

docker exec postgrescontainer psql -U postgres mydatabase < D:\"My documents"\desk\sql\database.sql

But when i see into the container, nothing happens and the relations of mydatabase are empty.

1 Answer 1

3

I achieved adding -i in the flags

docker exec -i postgrescontaineer psql -U postgres mydatabase < D:\"My documents"\desk\sql\database.sql

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.