English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
docker top :View process information running in the container, supports ps command parameters.
docker top [OPTIONS] CONTAINER [ps OPTIONS]
The container may not have when running/bin/bash terminal to interactively execute the top command, and the container may not have the top command. You can use docker top to view the processes running in the container.
View process information of container mymysql.
w3codebox@w3codebox:~/mysql$ docker top mymysql UID PID PPID C STIME TTY TIME CMD 999 40347 40331 18 00:58 ? 00:00:02 mysqld
View process information of all running containers.
for i in `docker ps | grep Up | awk '{print $'1}'`;do echo \ && docker top $i; done