DEV Community

Discussion on: How to easily create a Postgres database in Docker

Collapse
 
mtiahrt profile image
Mark Tiahrt

Great post! thank you. very clear explanation. Thanks!

One question. Is there a specific encoding you used when generating the sql dump file? Using my dump file the data isn't importing. I'm used Dbeaver to generate the dump file but noticed this message when starting the container.

running /docker-entrypoint-initdb.d/postgres.sql
The input is a PostgreSQL custom-format dump.
Use the pg_restore command-line client to restore this dump to a database.

Collapse
 
angeldzhambazov profile image
Angel Dzhambazov

I have the same issue, the data is not imported and the table is not created.