summaryrefslogtreecommitdiff
path: root/docker/api/container.py
diff options
context:
space:
mode:
authorJamie Greeff <jamie@greeff.me>2016-08-04 15:17:06 +0100
committerAanand Prasad <aanand.prasad@gmail.com>2016-11-16 16:04:17 +0000
commitb4f2b5fa70a513a89df08a100cce63a9727b6580 (patch)
tree961af4b1007f50311e408e0e7de339028df51702 /docker/api/container.py
parentf262dd6da983300f00c5969f5af03492bef07508 (diff)
downloaddocker-py-b4f2b5fa70a513a89df08a100cce63a9727b6580.tar.gz
Add support for passing healthcheck to create_container
Signed-off-by: Jamie Greeff <jamie@greeff.me>
Diffstat (limited to 'docker/api/container.py')
-rw-r--r--docker/api/container.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/docker/api/container.py b/docker/api/container.py
index d71d17a..338b79f 100644
--- a/docker/api/container.py
+++ b/docker/api/container.py
@@ -115,7 +115,8 @@ class ContainerApiMixin(object):
cpu_shares=None, working_dir=None, domainname=None,
memswap_limit=None, cpuset=None, host_config=None,
mac_address=None, labels=None, volume_driver=None,
- stop_signal=None, networking_config=None):
+ stop_signal=None, networking_config=None,
+ healthcheck=None):
if isinstance(volumes, six.string_types):
volumes = [volumes, ]
@@ -130,7 +131,7 @@ class ContainerApiMixin(object):
tty, mem_limit, ports, environment, dns, volumes, volumes_from,
network_disabled, entrypoint, cpu_shares, working_dir, domainname,
memswap_limit, cpuset, host_config, mac_address, labels,
- volume_driver, stop_signal, networking_config,
+ volume_driver, stop_signal, networking_config, healthcheck,
)
return self.create_container_from_config(config, name)
@@ -365,7 +366,7 @@ class ContainerApiMixin(object):
cap_drop=cap_drop, volumes_from=volumes_from, devices=devices,
network_mode=network_mode, restart_policy=restart_policy,
extra_hosts=extra_hosts, read_only=read_only, pid_mode=pid_mode,
- ipc_mode=ipc_mode, security_opt=security_opt, ulimits=ulimits
+ ipc_mode=ipc_mode, security_opt=security_opt, ulimits=ulimits,
)
start_config = None