>
> > > 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
> > > <...>'.
>
>
Hi Christopher,
This will be about the same as `docker run -it -e blu=bla ubuntu /bin/ping
8.8.8.8`:
[root@headnode (coal) ~]# cat manual_docker.payload
{
"brand": "lx",
"image_uuid": "5371d39a-882e-5ab1-2eac-f420e382b231",
"cpu_shares": 64,
"max_lwps": 4000,
"zfs_io_priority": 64,
"max_physical_memory": 1024,
"max_locked_memory": 1024,
"max_swap": 4096,
"docker": true,
"kernel_version": "3.13.0",
"resolvers": [
"8.8.8.8",
"8.8.4.4"
],
"alias": "manual_docker",
"nics": [
{
"vlan_id": 0,
"nic_tag": "external",
"gateway": "10.128.0.2",
"netmask": "255.192.0.0",
"ip": "10.128.0.6",
"primary": true
}
],
"internal_metadata": {
"docker:cmd": "[\"/bin/ping\",\"8.8.8.8\"]",
"docker:tty": true,
"docker:attach_stdin": true,
"docker:attach_stdout": true,
"docker:attach_stderr": true,
"docker:open_stdin": true,
"docker:env": "[\"blu=bla\"]",
"docker:noipmgmtd": true
},
"quota": 25
}
[root@headnode (coal) ~]# vmadm create -f manual_docker.payload
Successfully created VM b41e7d1b-c64b-4914-9810-91577bae601f
[root@headnode (coal) ~]# zlogin -QI b41e7d1b-c64b-4914-9810-91577bae601f
64 bytes from 8.8.8.8: icmp_seq=14 ttl=128 time=25.2 ms
64 bytes from 8.8.8.8: icmp_seq=15 ttl=128 time=35.2 ms
64 bytes from 8.8.8.8: icmp_seq=16 ttl=128 time=33.6 ms
^C
--- 8.8.8.8 ping statistics ---
16 packets transmitted, 16 received, 0% packet loss, time 15013ms
rtt min/avg/max/mdev = 25.236/36.493/49.078/6.599 ms
[root@headnode (coal) ~]#
Hope that helps.
Thanks,
Josh
-------------------------------------------
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