diff options
author | Joffrey F <joffrey@docker.com> | 2016-11-28 12:01:25 -0800 |
---|---|---|
committer | Joffrey F <joffrey@docker.com> | 2016-11-28 12:01:25 -0800 |
commit | 44e57fb95d94145a789cc29884756b7fd4e03fe1 (patch) | |
tree | e61b1ecfbb91d663b9a9a2f3535aa95767570c6f /docker | |
parent | 7ef48c3769cc42115b59157847275b2d072d7e5f (diff) | |
download | docker-py-44e57fb95d94145a789cc29884756b7fd4e03fe1.tar.gz |
Re-enable pid_mode checks for API < 1.24stepanstipl-allow_custom_pid_mode
Signed-off-by: Joffrey F <joffrey@docker.com>
Diffstat (limited to 'docker')
-rw-r--r-- | docker/utils/utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docker/utils/utils.py b/docker/utils/utils.py index f4ad6f8..d053fee 100644 --- a/docker/utils/utils.py +++ b/docker/utils/utils.py @@ -736,6 +736,8 @@ def create_host_config(binds=None, port_bindings=None, lxc_conf=None, host_config['ShmSize'] = shm_size if pid_mode: + if version_lt(version, '1.24') and pid_mode != 'host': + raise host_config_value_error('pid_mode', pid_mode) host_config['PidMode'] = pid_mode if ipc_mode: |