diff options
| author | Christian Hammerl <info@christian-hammerl.de> | 2014-09-04 23:15:47 +0200 |
|---|---|---|
| committer | Christian Hammerl <info@christian-hammerl.de> | 2014-09-04 23:15:47 +0200 |
| commit | 9523950829db5a3080c3fe44e5f74085d43c6015 (patch) | |
| tree | 3602a0bb6e690b1fdaf39ce3c26ac0ebf02a088f /README.md | |
| parent | e6af420aebfe4aad096217df4584d5cac4fb6098 (diff) | |
| download | docker-py-9523950829db5a3080c3fe44e5f74085d43c6015.tar.gz | |
add support to add or drop capabilities
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -232,7 +232,8 @@ Identical to the `docker search` command. ```python c.start(container, binds=None, port_bindings=None, lxc_conf=None, publish_all_ports=False, links=None, privileged=False, - dns=None, dns_search=None, volumes_from=None, network_mode=None, restart_policy=None) + dns=None, dns_search=None, volumes_from=None, network_mode=None, + restart_policy=None, cap_add=None, cap_drop=None) ``` Similar to the `docker start` command, but doesn't support attach @@ -278,6 +279,15 @@ for example: } ``` +`cap_add` and `cap_drop` are available since v1.2.0 and can be used to add or drop certain capabilities. +The user may specify the capabilities as an array for example: +``` +[ + "SYS_ADMIN", + "MKNOD" +] +``` + ```python c.stop(container, timeout=10) |
