Sorry for dumb questions.
/etc/subuid looks like this
root:100000:65536
root:200000:65536
root:300000:65536
and so on
/etc/subgid the same
I want to create lxd containers so they have separate set of uids.
How to do it with lxd commands and with pylxd?
I tried:
uids = 200000
config = { 'limits.memory' : '1024MB', 'limits.cpu' : '1',
'name' : 'test', 'raw.id_map' : 'uid 0-65536 %d-%d\ngid 0-65536 %d-%d' % (uids,
uids+65536, uids, uids+65536)}
container = client.containers.create(config, wait=True)
but result is that uids inside container's rootfs starts with 100000.
Please, give some examples.
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users