I can share my previous posts about it. Hope it helps
- [Help Needed] How to mount a directory as a non-root user in a container - #11 by rimelek
- Docker is running container as _apt user - #4 by rimelek
I think I had an even better explanation I couldn’t find now. But the point is that you need to find out what userid on the host is UID 1 in the container. The rest can be calculated. And your user on the host will be the root (UID 0) in the container.