查看 Docker 中运行/停止容器的完整命令 [英] See full command of running/stopped container in Docker

查看:86
本文介绍了查看 Docker 中运行/停止容器的完整命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何查看 Docker 中正在运行的容器/进程的完整命令?

How can I see the full command of a running container/process in Docker?

$ docker ps --all
CONTAINER ID    IMAGE          COMMAND                 CREATED          STATUS                     PORTS    NAMES
5b6291859b61    nginx:1.7.8    "nginx -g 'daemon of    4 minutes ago    Exited (0) 4 minutes ago            thirsty_brattain

我在这里只能看到nginx -g 'daemon of"..,而不是完整的命令.

I can only see "nginx -g 'daemon of".. here, not the full command.

推荐答案

docker ps --no-trunc 将显示完整命令以及正在运行的容器的其他详细信息.

docker ps --no-trunc will display the full command along with the other details of the running containers.

这篇关于查看 Docker 中运行/停止容器的完整命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆