container_top
List processes running inside a Docker container without executing commands in it, using host ps. Works on any running container, no shell required.
Instructions
List the processes running inside a container (the daemon runs ps on the host).
Works on any running container without executing anything in it, so it needs no shell or ps
binary in the image - unlike container_exec with ps. Use container_stats for resource
usage rather than process lists. Fails if the container is not running.
Args: ps_args: Extra ps arguments (e.g. "aux"); default is the daemon's standard ps invocation
Returns: dict: {"Titles": [ps column names], "Processes": [[one row of values per process]]}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ps_args | No | ||
| id_or_name | Yes |