I would like to have a way to enter into the Postgresql container and get a data dump from it.
Another workaround method is to start postgre sql with a mountpoint to the location of the dump in docker.
like docker run -v .
Then perform a docker inspect on the docker running container
docker inspect
you can find "Volumes" tag inside and a corresponding location.Go to the location and you can find all the postgresql/mysql files.It worked for me.Let us know if that worked for you also.
Good luck