Hi, currently, I am playing around with docker and try to pass environment variables to the LX docker zones in the fashion of 'docker run -e <...>'.
From https://github.com/joyent/smartos-live/blob/master/src/dockerinit/src/docker-common.c#L311 I got the idea that I could pass environment vars in the internal metadata thus: { "alias": "debiandocker", "image_uuid": "82b552d0-4021-bff7-5d46-0390ec71774b", "nics": [ { "interface": "net0", "nic_tag": "admin", "gateway": "192.168.2.1", "netmask": "255.255.255.0", "primary": true, "ip": "192.168.2.18" } ], "brand": "lx", "kernel_version": "3.13.0", "docker": true, "cpu_shares": 100, "zfs_io_priority": 1000, "max_lwps": 2000, "max_physical_memory": 1024, "max_locked_memory": 1024, "max_swap": 16384, "cpu_cap": 100, "tmpfs": 16384, "maintain_resolvers": true, "resolvers": [ "192.168.2.1" ], "internal_metadata": { "docker:cmd": "[\"/bin/ping\", \"3600\"]", "docker:env": "[\"blu\", \"bla\"]" }, "quota": 10 } However, trying to create such a zone with vmadm fails. Can someone help me out with a pointer to the proper docs on how to do that right? Thanks and cheers, -- Christopher ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
