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
f07524f2
Kaydet (Commit)
f07524f2
authored
Ara 17, 2014
tarafından
Joffrey F
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Un-deprecated hostconfig in start
üst
c29a6a28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
33 deletions
+6
-33
client.py
docker/client.py
+6
-33
No files found.
docker/client.py
Dosyayı görüntüle @
f07524f2
...
...
@@ -265,6 +265,12 @@ class Client(requests.Session):
def
_create_websocket_connection
(
self
,
url
):
return
websocket
.
create_connection
(
url
)
def
_warn_deprecated
(
self
,
arg_name
,
version
):
warning_message
=
(
'{0!r} is deprecated for API version >= {1}'
)
.
format
(
arg_name
,
version
)
warnings
.
warn
(
warning_message
,
DeprecationWarning
)
def
_get_raw_response_socket
(
self
,
response
):
self
.
_raise_for_status
(
response
)
if
six
.
PY3
:
...
...
@@ -919,39 +925,6 @@ class Client(requests.Session):
start_config
=
{}
def
warn
(
arg_name
,
version
):
warning_message
=
(
'{0!r} parameter is deprecated for API version >= {1}'
)
.
format
(
arg_name
,
version
)
warnings
.
warn
(
warning_message
,
DeprecationWarning
)
if
utils
.
compare_version
(
'1.16'
,
self
.
_version
)
>=
0
:
version
=
'1.16'
if
binds
:
warn
(
'binds'
,
version
)
if
port_bindings
:
warn
(
'port_bindings'
,
version
)
if
lxc_conf
:
warn
(
'lxc_conf'
,
version
)
if
publish_all_ports
:
warn
(
'publish_all_ports'
,
version
)
if
links
:
warn
(
'links'
,
version
)
if
privileged
:
warn
(
'privileged'
,
version
)
if
dns
or
dns_search
:
warn
(
'dns/dns_search'
,
version
)
if
volumes_from
:
warn
(
'volumes_from'
,
version
)
if
network_mode
:
warn
(
'network_mode'
,
version
)
if
restart_policy
:
warn
(
'restart_policy'
,
version
)
if
cap_add
or
cap_drop
:
warn
(
'cap_add/cap_drop'
,
version
)
if
devices
:
warn
(
'devices'
,
version
)
if
isinstance
(
container
,
dict
):
container
=
container
.
get
(
'Id'
)
...
...
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