Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
docker-py
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
docker-py
Commits
bf60e2a3
Kaydet (Commit)
bf60e2a3
authored
May 09, 2017
tarafından
Joffrey F
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
init_path removed in Engine 17.05
Signed-off-by:
Joffrey F
<
joffrey@docker.com
>
üst
4e217b5c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
containers.py
docker/types/containers.py
+4
-0
api_container_test.py
tests/integration/api_container_test.py
+1
-0
No files found.
docker/types/containers.py
Dosyayı görüntüle @
bf60e2a3
...
...
@@ -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
:
...
...
tests/integration/api_container_test.py
Dosyayı görüntüle @
bf60e2a3
...
...
@@ -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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment