|
@@ -220,6 +220,46 @@ Inspect a container
|
|
:statuscode 500: server error
|
|
:statuscode 500: server error
|
|
|
|
|
|
|
|
|
|
|
|
+List processes running inside a container
|
|
|
|
+*****************************************
|
|
|
|
+
|
|
|
|
+.. http:get:: /containers/(id)/proc
|
|
|
|
+
|
|
|
|
+ List processes running inside the container ``id``
|
|
|
|
+
|
|
|
|
+ **Example request**:
|
|
|
|
+
|
|
|
|
+ .. sourcecode:: http
|
|
|
|
+
|
|
|
|
+ GET /containers/4fa6e0f0c678/proc HTTP/1.1
|
|
|
|
+
|
|
|
|
+ **Example response**:
|
|
|
|
+
|
|
|
|
+ .. sourcecode:: http
|
|
|
|
+
|
|
|
|
+ HTTP/1.1 200 OK
|
|
|
|
+ Content-Type: application/json
|
|
|
|
+
|
|
|
|
+ [
|
|
|
|
+ {
|
|
|
|
+ "PID":"11935",
|
|
|
|
+ "Tty":"pts/2",
|
|
|
|
+ "Time":"00:00:00",
|
|
|
|
+ "Cmd":"sh"
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "PID":"12140",
|
|
|
|
+ "Tty":"pts/2",
|
|
|
|
+ "Time":"00:00:00",
|
|
|
|
+ "Cmd":"sleep"
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+
|
|
|
|
+ :statuscode 200: no error
|
|
|
|
+ :statuscode 404: no such container
|
|
|
|
+ :statuscode 500: server error
|
|
|
|
+
|
|
|
|
+
|
|
Inspect changes on a container's filesystem
|
|
Inspect changes on a container's filesystem
|
|
*******************************************
|
|
*******************************************
|
|
|
|
|