List processes running inside a container Run in API Explorer
On Unix systems, this is done by running the ps
command. This endpoint
is not supported on Windows.
GET
/containers/{id}/top
curl \
--request GET 'http://api.example.com/v1.49/containers/{id}/top'
Response examples (200)
{
"Titles": [
{
"Titles": [
"UID",
"PID",
"PPID",
"C",
"STIME",
"TTY",
"TIME",
"CMD"
]
}
],
"Processes": [
{
"Processes": [
[
"root",
"13642",
"882",
"0",
"17:03",
"pts/0",
"00:00:00",
"/bin/bash"
],
[
"root",
"13735",
"13642",
"0",
"17:06",
"pts/0",
"00:00:00",
"sleep 10"
]
]
}
]
}
Response examples (404)
{
"message": "No such container: c2ada9df5af8"
}
Response examples (404)
{
"message": "Something went wrong."
}
Response examples (500)
{
"message": "Something went wrong."
}
Response examples (500)
{
"message": "Something went wrong."
}