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
2d4a71df
Kaydet (Commit)
2d4a71df
authored
Eyl 25, 2015
tarafından
Pierre Fersing
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Allow to specify ps_args when listing processes
Signed-off-by:
Pierre Fersing
<
pierre.fersing@bleemeo.com
>
üst
26e22bbd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
container.py
docker/api/container.py
+5
-2
api.md
docs/api.md
+1
-0
No files found.
docker/api/container.py
Dosyayı görüntüle @
2d4a71df
...
...
@@ -325,9 +325,12 @@ class ContainerApiMixin(object):
self
.
_raise_for_status
(
res
)
@utils.check_resource
def
top
(
self
,
container
):
def
top
(
self
,
container
,
ps_args
=
None
):
u
=
self
.
_url
(
"/containers/{0}/top"
,
container
)
return
self
.
_result
(
self
.
_get
(
u
),
True
)
params
=
{}
if
ps_args
is
not
None
:
params
[
'ps_args'
]
=
ps_args
return
self
.
_result
(
self
.
_get
(
u
,
params
=
params
),
True
)
@utils.check_resource
def
unpause
(
self
,
container
):
...
...
docs/api.md
Dosyayı görüntüle @
2d4a71df
...
...
@@ -878,6 +878,7 @@ Display the running processes of a container.
**Params**
:
*
container (str): The container to inspect
*
ps_args (str): An optional arguments passed to ps (e.g., aux)
**Returns**
(str): The output of the top
...
...
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