This commit is contained in:
Victor Vieux 2013-06-28 18:05:41 +02:00
parent 2e79719622
commit 8589fd6db8
4 changed files with 59 additions and 0 deletions

View File

@ -29,6 +29,11 @@ You can still call an old version of the api using /v1.0/images/<name>/insert
What's new
----------
Listing processes (/proc):
- List the processes inside a container
Builder (/build):
- Simplify the upload of the build context

View File

@ -220,6 +220,46 @@ Inspect a container
: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
*******************************************

View File

@ -41,6 +41,7 @@ Available Commands
command/login
command/logs
command/port
command/proc
command/ps
command/pull
command/push

View File

@ -0,0 +1,13 @@
:title: Proc Command
:description: Lookup the running processes of a container
:keywords: proc, docker, container, documentation
=======================================================
``proc`` -- Lookup the running processes of a container
=======================================================
::
Usage: docker proc CONTAINER
Lookup the running processes of a container