1. docker top

1.1. 描述

显示容器中正在运行的进程信息

1.2. 帮助

$ docker top --help

Usage: docker top CONTAINER [ps OPTIONS]

Display the running processes of a container

1.3. 示例

  • 查看容器的里面进程
# docker top a3ea83cca5ff
UID PID PPID C STIME TTY TIME CMD
root 56669 56623 0 2019 ? 00:00:00 /bin/sh -c /usr/sbin/nginx -c /etc/nginx/nginx.conf -g 'daemon off;'
root 56850 56669 0 2019 ? 00:00:00 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf -g daemon off;
101 56858 56850 0 2019 ? 00:00:07 nginx: worker process
Copyright © 温玉 2021 | 浙ICP备2020032454号 all right reserved,powered by Gitbook该文件修订时间: 2022-03-13 11:28:02

results matching ""

    No results matching ""