Dump and restore Postgres database using Docker

If you have ever worked with a Postgres database, or any database for that matter, you know that migrating can be horrifying and give you physical pain :) (I’m exaggerating, but you get the point).
If you have do have to make a migration, on a Postgres database, there are a few ways to do it. I found a way to do it using docker containers, since I don’t want to install Postgres on my machine.