I see. That makes it quite clear. Thank you very much.
An alternative could also be to run podman unshare chown -R $(id
-u):$(id -g) volumedir/ afterwards.
That is why I wanted to know if we could have podman execute manual cleanup commands on
exit. I suppose that isn't something others have a need of.
P. S: `podman unshare chown -R $(id -u):$(id -g) volumedir` does not quite do the trick.
One must `podman unshare chown -R 0:0 volumedir`, as I've been doing (which, turns
out, is because of the intermediate-uid-mapping that you explained in this thread).