diff options
author | Joffrey F <joffrey@docker.com> | 2017-01-25 16:45:59 -0800 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2017-01-25 16:45:59 -0800 |
commit | 848b7aa6a4721a58831d3d9c611cc261217a1b4b (patch) | |
tree | 1383d6661613e945769ad6f79f2b42fcf35a5a56 /docker/models/containers.py | |
parent | 4ff77dc1c910e07117c925cf0f9784529f3bd8d5 (diff) | |
download | docker-py-autoremove_support.tar.gz |
Add support for auto_remove in HostConfigautoremove_support
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'docker/models/containers.py')
-rw-r--r-- | docker/models/containers.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docker/models/containers.py b/docker/models/containers.py index 259828a..6acc4bb 100644 --- a/docker/models/containers.py +++ b/docker/models/containers.py @@ -446,6 +446,8 @@ class ContainerCollection(Collection): Args: image (str): The image to run. command (str or list): The command to run in the container. + auto_remove (bool): enable auto-removal of the container on daemon + side when the container's process exits. blkio_weight_device: Block IO weight (relative device weight) in the form of: ``[{"Path": "device_path", "Weight": weight}]``. blkio_weight: Block IO weight (relative weight), accepts a weight |