Docker-compose命令-top

命令

docker-compose top

描述

Display the running processes
显示运行的进程

用法

选项

注意

示例

1
2
3
4
5
6
7
8
9
10
11
12
$ docker-compose top
nginx1
UID PID PPID C STIME TTY TIME CMD
--------------------------------------------------------------------------------------------
root 9108 9092 0 00:13 ? 00:00:00 nginx: master process nginx -g daemon off;
101 9179 9108 0 00:13 ? 00:00:00 nginx: worker process
101 9180 9108 0 00:13 ? 00:00:00 nginx: worker process
# 宿主机上显示的进程信息
$ ps aux | grep nginx
root 9108 0.0 0.2 6000 4472 ? Ss 00:13 0:00 nginx: master process nginx -g daemon off;
101 9179 0.0 0.0 6488 1984 ? S 00:13 0:00 nginx: worker process
101 9180 0.0 0.0 6488 1624 ? S 00:13 0:00 nginx: worker process