I checked the tutorial and setting the private label :Z worked when using $HOME/… as bind mount. For named volumes from podman itself that was not necessary, it worked out of the box.
Like I said the dev used bind mounts so I sticked with that but he was probably using docker so he didn’t have this problem.


When I run the compose file with bind mount
./dataand no :Z label I get these results:ls -layields the currently logged in user as owner of the data directory.podman unshare ls -layields root as owner of the data directory.So do you think this is the basis of the problem?