Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

See full command of running/stopped container in Docker

Tags:

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 

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

like image 210
Niklas9 Avatar asked Dec 09 '14 13:12

Niklas9


People also ask

What docker command can be used to see all the running and stopped Containers?

In order to list the Docker containers, we can use the “docker ps” or “docker container ls” command. This command provides a variety of ways to list and filter all containers on a particular Docker engine.

Which command is used to show all the running and exited containers?

In Docker, we can use docker ps to show all running containers, docker ps -a to show all running and stopped containers. The ps stands for process status . On Docker, it shows the status of containers along with their IDs.


1 Answers

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

like image 90
Scott S. Avatar answered Sep 17 '22 18:09

Scott S.