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.
Use:
... it does a "docker inspect" for all containers.
Use runlike from git repository https://github.com/lavie/runlike
To install runlike
As it accept container id as an argument so to extract container id use following command
You are good to use runlike to extract complete docker run command with following command
docker ps -a --no-trunc
will display the full command along with the other details of the running containers.Use:
That will display the command path and arguments, similar to
docker ps
.