"UID/GID" is one of the
illusions that a container system maintains for its "guests."
To quote
Aladdin: The guests may think that they have "phenomenal cosmic powers" (i.e. "root"), but to the host they actually have "iddy-biddy living space."
However, from the point-of-view of the container guests, the "illusion" is not an illusion at all.
But,
always be sure that "'root' on the guest" is
not "'root' on the host," even though this is usually an option.