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
b7e1ac70
Kaydet (Commit)
b7e1ac70
authored
Tem 03, 2013
tarafından
shin-
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed logs command
üst
5ca13da4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
client.py
docker/client.py
+1
-1
test.py
tests/test.py
+2
-2
No files found.
docker/client.py
Dosyayı görüntüle @
b7e1ac70
...
...
@@ -231,7 +231,7 @@ class Client(requests.Session):
}
u
=
self
.
_url
(
"/containers/{0}/attach"
.
format
(
container
))
res
=
self
.
post
(
u
,
None
,
params
=
params
)
return
res
.
raw
return
res
.
text
def
port
(
self
,
container
,
private_port
):
res
=
self
.
get
(
self
.
_url
(
"/containers/{0}/json"
.
format
(
container
)))
...
...
tests/test.py
Dosyayı görüntüle @
b7e1ac70
...
...
@@ -132,14 +132,14 @@ class TestLogs(BaseTestCase):
def
runTest
(
self
):
snippet
=
'Flowering Nights (Sakuya Iyazoi)'
container
=
self
.
client
.
create_container
(
'busybox'
,
[
'echo'
,
'-n'
,
'
"{0}"
'
.
format
(
snippet
)])
[
'echo'
,
'-n'
,
'
{0}
'
.
format
(
snippet
)])
id
=
container
[
'Id'
]
self
.
client
.
start
(
id
)
self
.
tmp_containers
.
append
(
id
)
exitcode
=
self
.
client
.
wait
(
id
)
self
.
assertEqual
(
exitcode
,
0
)
logs
=
self
.
client
.
logs
(
id
)
self
.
assertEqual
(
logs
.
read
()
,
snippet
)
self
.
assertEqual
(
logs
,
snippet
)
class
TestDiff
(
BaseTestCase
):
def
runTest
(
self
):
...
...
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