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
523371e2
Kaydet (Commit)
523371e2
authored
Mar 23, 2019
tarafından
Hannes Ljungberg
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Move volume_driver to RUN_HOST_CONFIG_KWARGS
Fixes #2271 Signed-off-by:
Hannes Ljungberg
<
hannes@5monkeys.se
>
üst
142db4b3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
containers.py
docker/models/containers.py
+1
-1
models_containers_test.py
tests/integration/models_containers_test.py
+10
-0
models_containers_test.py
tests/unit/models_containers_test.py
+1
-1
No files found.
docker/models/containers.py
Dosyayı görüntüle @
523371e2
...
...
@@ -964,7 +964,6 @@ RUN_CREATE_KWARGS = [
'tty'
,
'use_config_proxy'
,
'user'
,
'volume_driver'
,
'working_dir'
,
]
...
...
@@ -1028,6 +1027,7 @@ RUN_HOST_CONFIG_KWARGS = [
'userns_mode'
,
'uts_mode'
,
'version'
,
'volume_driver'
,
'volumes_from'
,
'runtime'
]
...
...
tests/integration/models_containers_test.py
Dosyayı görüntüle @
523371e2
...
...
@@ -378,3 +378,13 @@ class ContainerTest(BaseIntegrationTest):
detach
=
True
)
self
.
tmp_containers
.
append
(
container
.
id
)
assert
container
.
wait
()[
'StatusCode'
]
==
1
def
test_create_with_volume_driver
(
self
):
client
=
docker
.
from_env
(
version
=
TEST_API_VERSION
)
container
=
client
.
containers
.
create
(
'alpine'
,
'sleep 300'
,
volume_driver
=
'foo'
)
self
.
tmp_containers
.
append
(
container
.
id
)
assert
container
.
attrs
[
'HostConfig'
][
'VolumeDriver'
]
==
'foo'
tests/unit/models_containers_test.py
Dosyayı görüntüle @
523371e2
...
...
@@ -176,6 +176,7 @@ class ContainerCollectionTest(unittest.TestCase):
'Ulimits'
:
[{
"Name"
:
"nofile"
,
"Soft"
:
1024
,
"Hard"
:
2048
}],
'UsernsMode'
:
'host'
,
'UTSMode'
:
'host'
,
'VolumeDriver'
:
'some_driver'
,
'VolumesFrom'
:
[
'container'
],
},
healthcheck
=
{
'test'
:
'true'
},
...
...
@@ -190,7 +191,6 @@ class ContainerCollectionTest(unittest.TestCase):
stop_signal
=
9
,
tty
=
True
,
user
=
'bob'
,
volume_driver
=
'some_driver'
,
volumes
=
[
'/mnt/vol2'
,
'/mnt/vol1'
,
...
...
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