Hmm... I think I'm starting to get it now.
I just ran
`$ podman run --rm --uidmap 1000:0:1 --uidmap 0:1:1000 -v ./gogsfoo:/data
docker.io/gogs/gogs` and on exit ./gogsfoo is owned by my regular user.
I suppose the final `--uidmap 1001:1001:$(($subuidsize-1000))` where $subuidsize is `cat
/etc/subuid | cat -d: -f 3` is just a precaution, and my aforementioned command would have
failed if there were a user 1001 inside the container, because then podman would be like
"I don't know where to map it", I presume?
I wonder... if we had something whereby, on exit, podman reverted the ownership of all
files in the subuid range (as specified by /etc/subuid) back to the user, automatically
(or if there a flag to make it do so), it would be of tremendous help to the users.