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.
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.
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.
docker ps --no-trunc
will display the full command along with the other details of the running containers.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With