← 返回命令列表

Linux command

docker-container-top 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show running processes

docker container top [container]

Show with custom ps options

docker container top [container] aux

说明

docker container top displays the running processes inside a container, similar to the Unix ps command but scoped to a specific container's process namespace. This provides visibility into what is actually executing within the container at any given moment. The command accepts standard ps options to customize the output format and control which process attributes are displayed. This is particularly useful for debugging containers, verifying that expected processes are running, and investigating resource usage at the process level.

FAQ

What is the docker-container-top command used for?

docker container top displays the running processes inside a container, similar to the Unix ps command but scoped to a specific container's process namespace. This provides visibility into what is actually executing within the container at any given moment. The command accepts standard ps options to customize the output format and control which process attributes are displayed. This is particularly useful for debugging containers, verifying that expected processes are running, and investigating resource usage at the process level.

How do I run a basic docker-container-top example?

Run `docker container top [container]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more docker-container-top examples?

This page includes 2 examples for docker-container-top, plus related commands for nearby Linux tasks.