Added example to the lxc_conf argument in the start command

This commit is contained in:
Ulises Reyes 2013-11-06 21:23:35 -05:00
parent 3aa51d52d0
commit 674fe91451
1 changed files with 2 additions and 1 deletions

View File

@ -112,7 +112,8 @@ dictionary whose key is the container's port and the value is a `[{'HostIp': ''
all host interfaces. By leaving the `HostPort` blank, Docker will all host interfaces. By leaving the `HostPort` blank, Docker will
automatically assign a port. For example: `port_bindings={"2181/tcp": [{'HostIp': '' automatically assign a port. For example: `port_bindings={"2181/tcp": [{'HostIp': ''
'HostPort': ''}]}`. 'HostPort': ''}]}`.
`lxc_conf` allows to pass LXC configuration options in dict form. `lxc_conf` allows to pass LXC configuration options using a dictionary in the form of Key Value pairs.
For example: `lxc_conf=[{"Key":"lxc.cgroup.cpu.shares","Value":"1"}, {"Key": ..., "Value": }]`.
* `c.stop(container, timeout=10)` * `c.stop(container, timeout=10)`
Stops a container. Similar to the `docker stop` command. Stops a container. Similar to the `docker stop` command.