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
7722d718
Kaydet (Commit)
7722d718
authored
Haz 20, 2014
tarafından
Joffrey F
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
insert() is no longer available in API >=1.12
üst
de066a1a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
client.py
docker/client.py
+7
-1
errors.py
docker/errors.py
+4
-0
No files found.
docker/client.py
Dosyayı görüntüle @
7722d718
...
@@ -30,7 +30,7 @@ from . import errors
...
@@ -30,7 +30,7 @@ from . import errors
if
not
six
.
PY3
:
if
not
six
.
PY3
:
import
websocket
import
websocket
DEFAULT_DOCKER_API_VERSION
=
'1.
9
'
DEFAULT_DOCKER_API_VERSION
=
'1.
12
'
DEFAULT_TIMEOUT_SECONDS
=
60
DEFAULT_TIMEOUT_SECONDS
=
60
STREAM_HEADER_SIZE_BYTES
=
8
STREAM_HEADER_SIZE_BYTES
=
8
...
@@ -546,6 +546,10 @@ class Client(requests.Session):
...
@@ -546,6 +546,10 @@ class Client(requests.Session):
True
)
True
)
def
insert
(
self
,
image
,
url
,
path
):
def
insert
(
self
,
image
,
url
,
path
):
if
utils
.
compare_version
(
'1.12'
,
self
.
_version
)
>=
0
:
raise
errors
.
DeprecatedMethod
(
'insert is not available for API version >=1.12'
)
api_url
=
self
.
_url
(
"/images/"
+
image
+
"/insert"
)
api_url
=
self
.
_url
(
"/images/"
+
image
+
"/insert"
)
params
=
{
params
=
{
'url'
:
url
,
'url'
:
url
,
...
@@ -611,6 +615,8 @@ class Client(requests.Session):
...
@@ -611,6 +615,8 @@ class Client(requests.Session):
def
logs
(
self
,
container
,
stdout
=
True
,
stderr
=
True
,
stream
=
False
,
def
logs
(
self
,
container
,
stdout
=
True
,
stderr
=
True
,
stream
=
False
,
timestamps
=
False
):
timestamps
=
False
):
if
isinstance
(
container
,
dict
):
container
=
container
.
get
(
'Id'
)
if
utils
.
compare_version
(
'1.11'
,
self
.
_version
)
>=
0
:
if
utils
.
compare_version
(
'1.11'
,
self
.
_version
)
>=
0
:
params
=
{
'stderr'
:
stderr
and
1
or
0
,
params
=
{
'stderr'
:
stderr
and
1
or
0
,
'stdout'
:
stdout
and
1
or
0
,
'stdout'
:
stdout
and
1
or
0
,
...
...
docker/errors.py
Dosyayı görüntüle @
7722d718
...
@@ -59,3 +59,7 @@ class InvalidRepository(DockerException):
...
@@ -59,3 +59,7 @@ class InvalidRepository(DockerException):
class
InvalidConfigFile
(
DockerException
):
class
InvalidConfigFile
(
DockerException
):
pass
pass
class
DeprecatedMethod
(
DockerException
):
pass
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