Kaydet (Commit) bf60e2a3 authored tarafından Joffrey F's avatar Joffrey F

init_path removed in Engine 17.05

Signed-off-by: 's avatarJoffrey F <joffrey@docker.com>
üst 4e217b5c
......@@ -438,6 +438,10 @@ class HostConfig(dict):
if init_path is not None:
if version_lt(version, '1.25'):
raise host_config_version_error('init_path', '1.25')
if version_gte(version, '1.29'):
# https://github.com/moby/moby/pull/32470
raise host_config_version_error('init_path', '1.29', False)
self['InitPath'] = init_path
if volume_driver is not None:
......
......@@ -451,6 +451,7 @@ class CreateContainerTest(BaseAPIIntegrationTest):
config = self.client.inspect_container(ctnr)
assert config['HostConfig']['Init'] is True
@pytest.mark.xfail(True, reason='init-path removed in 17.05.0')
@requires_api_version('1.25')
def test_create_with_init_path(self):
ctnr = self.client.create_container(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment