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
48a19c31
Kaydet (Commit)
48a19c31
authored
Mar 30, 2015
tarafından
Yaroslav Molochko
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
IPC sharing implementation
üst
2f6579bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
client.py
docker/client.py
+6
-2
utils.py
docker/utils/utils.py
+5
-1
No files found.
docker/client.py
Dosyayı görüntüle @
48a19c31
...
...
@@ -869,7 +869,7 @@ class Client(requests.Session):
publish_all_ports
=
False
,
links
=
None
,
privileged
=
False
,
dns
=
None
,
dns_search
=
None
,
volumes_from
=
None
,
network_mode
=
None
,
restart_policy
=
None
,
cap_add
=
None
,
cap_drop
=
None
,
devices
=
None
,
extra_hosts
=
None
,
read_only
=
None
,
pid_mode
=
None
,
extra_hosts
=
None
,
read_only
=
None
,
pid_mode
=
None
,
ipc_mode
=
None
,
security_opt
=
None
):
if
utils
.
compare_version
(
'1.10'
,
self
.
_version
)
<
0
:
...
...
@@ -887,6 +887,10 @@ class Client(requests.Session):
raise
errors
.
InvalidVersion
(
'security_opt is only supported for API version >= 1.15'
)
if
ipc_mode
:
raise
errors
.
InvalidVersion
(
'ipc_mode is only supported for API version >= 1.15'
)
if
utils
.
compare_version
(
'1.17'
,
self
.
_version
)
<
0
:
if
read_only
is
not
None
:
...
...
@@ -905,7 +909,7 @@ class Client(requests.Session):
cap_drop
=
cap_drop
,
volumes_from
=
volumes_from
,
devices
=
devices
,
network_mode
=
network_mode
,
restart_policy
=
restart_policy
,
extra_hosts
=
extra_hosts
,
read_only
=
read_only
,
pid_mode
=
pid_mode
,
security_opt
=
security_opt
ipc_mode
=
ipc_mode
,
security_opt
=
security_opt
)
if
isinstance
(
container
,
dict
):
...
...
docker/utils/utils.py
Dosyayı görüntüle @
48a19c31
...
...
@@ -353,7 +353,8 @@ def create_host_config(
publish_all_ports
=
False
,
links
=
None
,
privileged
=
False
,
dns
=
None
,
dns_search
=
None
,
volumes_from
=
None
,
network_mode
=
None
,
restart_policy
=
None
,
cap_add
=
None
,
cap_drop
=
None
,
devices
=
None
,
extra_hosts
=
None
,
read_only
=
None
,
pid_mode
=
None
,
security_opt
=
None
extra_hosts
=
None
,
read_only
=
None
,
pid_mode
=
None
,
ipc_mode
=
None
,
security_opt
=
None
):
host_config
=
{}
...
...
@@ -364,6 +365,9 @@ def create_host_config(
elif
pid_mode
:
host_config
[
'PidMode'
]
=
pid_mode
if
ipc_mode
:
host_config
[
'IpcMode'
]
=
ipc_mode
if
privileged
:
host_config
[
'Privileged'
]
=
privileged
...
...
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