Latest web development tutorials

Docker top command

Docker command Daquan Docker command Daquan


docker top: View process information running in the container to support the ps command parameters.

grammar

docker top [OPTIONS] CONTAINER [ps OPTIONS]

Not necessarily a container runtime / bin / bash terminal reciprocating top command, and the container is not necessarily top command can be used to implement the process docker top view of the container are running.

Examples

View Process mymysql of container.

w3big@w3big:~/mysql$ docker top mymysql
UID    PID    PPID    C      STIME   TTY  TIME       CMD
999    40347  40331   18     00:58   ?    00:00:02   mysqld

View all processes running container information.

for i in  `docker ps |grep Up|awk '{print $1}'`;do echo \ &&docker top $i; done

Docker command Daquan Docker command Daquan