pg_dump and restore a db in a container

I’m running containerized ManageIQ appliances for development. To dump your postgres db running inside such a container you simply exec pg_dump. In my case not directly, because pg_dump is a some obscure place inside the container.

init

cat /dev/urandom | hexdump