[lxc-users] LXD default NS mappings

Tycho Andersen tycho.andersen at canonical.com
Thu Jan 28 08:56:57 UTC 2016


On Wed, Jan 27, 2016 at 05:09:52PM +0100, david.andel at bli.uzh.ch wrote:
> Hi
> 
> I have noticed that LXD uses some UIDs/GIDs by default I haven't set up and which aren't represented in /etc/sub[ug]id files.
> Interestingly, they are different from instance to instance: one one root is mapped on 1'000'000 (not 100'000), on another it's 265'536.
> Now when I copy the rootfs of a container offline between different LXD or LXC instances according to http://stackoverflow.com/questions/33377916/migrating-lxc-to-lxd doesn't the UID/GID mapping need to be the same?

No, the maps can be different.

> If not, why not?

Because LXD uidshifts the filesystems for you when you do `lxc copy`.

Tycho


More information about the lxc-users mailing list