---
title: "List processes running inside a container"
method: GET
path: "/containers/{id}/top"
tags: ["Container"]
---

# List processes running inside a container

`GET /containers/{id}/top`

On Unix systems, this is done by running the `ps` command. This endpoint
is not supported on Windows.

## Path parameters

- `id` string, required

## Query parameters

- `ps_args` string

## Response `200`

no error

- ContainerTopResponse — Container "top" response.
  - `Titles` string[] — The ps column titles
  - `Processes` array[] — Each process running in the container, where each process is an array of values corresponding to the titles.
    - string[]

## Other responses

- `404` — no such container
- `500` — server error

---

[API](https://skmtc.net/docker/apis/docker-engine-api.md) · [All operations](https://skmtc.net/docker/apis/docker-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/docker/docker-engine-api/versions/a181425ed19e/schema)
