I’ve switched from docker to podman in Fedora 30 with success but after upgrading to 31, my podman container is having “Permission denied” when using a mounted volume.
My use case is very simple. I have an image loaded with Ubuntu 18.04 and a cross platform Linux framework for compiling embedded builds, called Petalinux. I run the container with a volume command line switch to mount a host directory and compile those files with Petalinux. That worked fine until Fedora 31.
The command would be:
$ podman run -ti --volume `pwd`:/home/plnx/project:z tux/petalinux
The files are properly mounted in the container, but they belong to “root” and so I’m unable to write to them. There seems to be some user mapping that changed between versions.
I’ve read about cgroups v1 upgrading to v2 but I’m uncertain how to test.
I have SElinux set to Permissive.
I’ve rebuilt the image with F31 podman with no avail.
All files are own by my user and reside in the home directory, mounted exec.
Please help. I’ve been stuck on this issue for days and exhausted all means for a fix.
Thanks in advance for any pointers.