Skip to content

Commit bf60e2a

Browse files
committed
init_path removed in Engine 17.05
Signed-off-by: Joffrey F <[email protected]>
1 parent 4e217b5 commit bf60e2a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

docker/types/containers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,10 @@ def __init__(self, version, binds=None, port_bindings=None,
438438
if init_path is not None:
439439
if version_lt(version, '1.25'):
440440
raise host_config_version_error('init_path', '1.25')
441+
442+
if version_gte(version, '1.29'):
443+
# https://github.com/moby/moby/pull/32470
444+
raise host_config_version_error('init_path', '1.29', False)
441445
self['InitPath'] = init_path
442446

443447
if volume_driver is not None:

tests/integration/api_container_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ def test_create_with_init(self):
451451
config = self.client.inspect_container(ctnr)
452452
assert config['HostConfig']['Init'] is True
453453

454+
@pytest.mark.xfail(True, reason='init-path removed in 17.05.0')
454455
@requires_api_version('1.25')
455456
def test_create_with_init_path(self):
456457
ctnr = self.client.create_container(

0 commit comments

Comments
 (0)