Using podman/buildah, I want to build a container image that has host file systems already mounted.
I am able to do this with Singularity with sudo singularity build /tmp/lolcow.simg /tmp/lolcow.recipe
if those file systems are defined in /etc/singularity/singularity.conf. How can I do this with podman? I am trying to avoid using -v during the podman run stage for this. I'm not tied to Docker compatibility, so if there's a buildah-specific way to do this, great.
The podman-build man page gives as a usage example podman build --volume /home/test:/myvol:ro,Z -t imageName .
But when I try it and run the resulting image, the equivalent of the /home/test file system isn't mounted.