PgMigrator.run that maybe someone else has had to deal with. I'm following the series from @Lucas Barake at the moment and ran into some issues with the PgMigrator when dumping the schema. Basically when including the schemaDirectory it would output an empty _schema.sql. pg_dump functions used by the migrator wasn't acting against the correct database. I found a solution where I wrote my own dump function which adds the docker exec container before in the Command, but have been wondering if there is a more elegant solution or if this is maybe a bug or oversight.