[lxc-users] idmap, lxd and pylxde
Witold Filipczyk
gglater62 at gmail.com
Wed Jan 25 09:06:41 UTC 2017
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.
More information about the lxc-users
mailing list