Container

List processes running inside a container

Changed on

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

get/containers/{id}/top

Request

  • Base URL
    /v1.57 (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    none declared

Path parameters

idstring required

ID or name of the container

Query parameters

ps_argsstring

The arguments to pass to ps. For example, aux

Response

no error

Titlesstring[]

The ps column titles

Changes

    • breaking

      removed the media type application/json for the response with the status

    • info

      api tag Container added

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • breaking

      for the query request parameter ps_args, default value -ef was removed

    • info

      api tag Container removed

    • info

      removed the non-success response with the status

    • info

      removed the non-success response with the status