22 Feb
2022
22 Feb
'22
3:32 p.m.
On Tue, Feb 22, 2022 at 4:41 AM Prafulla Giri <prafulla.giri@protonmail.com> wrote:
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).
Of course, you're right. I agree, the command is podman unshare chown -R 0:0 volumedir