Docker PUID PGID

I have been studying docs, etc. as I prepare to move from a Core to a Container installation.

One thing I have seen in a number of examples is specifying some PUID and PGID in the docker-compose file. However I do not see this in the official documentation.

I gather that this is to alleviate some permission problems. But maybe it’s not necessary since the docs also state to use ‘priveledged’ mode, in which case, I guess the HA container will take ownership of whatever files it needs on the host (config mainly, I suppose)(?).

Related to HA?
I don’t remember seeing that. Do you have links?

These were certainly not ‘official’, maybe examples or information in forum posts where people are trying to fix some problem. Maybe wider Internet blog posts, things like that. I did quite a lot of reading, so I am afraid I would be hard pressed to remember exactly where I saw these, but I will try and dig up some example(s).

You know what, I can’t say I’m 100% sure. Maybe they were for related containers.