Restore a Postgres Backup into a Docker container

At times, Docker can be mind-boggling, especially when you strive for doing things “right”, which means following the “everything is a container” approach.

Now and then you will have to get large amounts of data into your container like restoring a database backup into a Docker-container. The Internets are full with  good advice on how to do it (right), but given the combination of an out-of-docker database dump file and the intention to run a dockerized database with a data volume only container, the approach in this post was of help. I assembled the step-wise guide from the links in the footage, kudos goes to these authors.

Continue reading “Restore a Postgres Backup into a Docker container”