@omichalek try with
:z at the end of the volume’s path:
podman run --rm --name tilemill -t \
-p 20009:20009 \
-p 20008:20008 \
-v ~/Documents/MapBox:/root/Documents/MapBox:z \
-e PGHOST=postgis \
-e PGDATABASE=gis \
-e PGUSER=docker \
-e PGPASSWORD=docker \
The volume part:
This has to do with the SELinux labels. Here you’ve some info about it:
By default, Silverblue has SELinux actived, so it can be a bit confusing the whole label thing and permissions. I’m still trying to wrap my head around that, but basically the issue is the labels.
NOTE: Be aware that after run that command the SELinux context labels will change for that directory (inside, but also outside the container). If the directory is for the container it’s ok, but change your entire
HOME or a directory that need specific label, might give you some headaches.
To check the labels you can run:
ls -Z ~/Documents/
-Z will show you the labels. Do it before and after running the podman command and you’ll see the difference.
At first, you’ll see something like:
After the podman run it will looks like:
Anyway, it should work for your case. I hope it helps.