mirror of https://github.com/docker/docs.git
Add doc
This commit is contained in:
parent
2e79719622
commit
8589fd6db8
|
@ -29,6 +29,11 @@ You can still call an old version of the api using /v1.0/images/<name>/insert
|
||||||
What's new
|
What's new
|
||||||
----------
|
----------
|
||||||
|
|
||||||
|
Listing processes (/proc):
|
||||||
|
|
||||||
|
- List the processes inside a container
|
||||||
|
|
||||||
|
|
||||||
Builder (/build):
|
Builder (/build):
|
||||||
|
|
||||||
- Simplify the upload of the build context
|
- Simplify the upload of the build context
|
||||||
|
|
|
@ -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
|
||||||
*******************************************
|
*******************************************
|
||||||
|
|
||||||
|
|
|
@ -41,6 +41,7 @@ Available Commands
|
||||||
command/login
|
command/login
|
||||||
command/logs
|
command/logs
|
||||||
command/port
|
command/port
|
||||||
|
command/proc
|
||||||
command/ps
|
command/ps
|
||||||
command/pull
|
command/pull
|
||||||
command/push
|
command/push
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue