container: T5955: allow setting uid/gid
(cherry picked from commit 52e9707a43290f5f826766e2c42c5f0db3c9adec)