getTop

suspend fun getTop(id: String, psArgs: String? = null): Result<ContainerTopResponse, ErrorResponse>

List processes running inside a container

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

Return

Operation response on success, or the Docker error response. Transport failures and cancellation can throw.

Parameters

id

Container ID or name.

psArgs

Arguments passed to the daemon-side ps command.