See full command of running/stopped container in Docker

前端 未结 6 1459
傲寒
傲寒 2020-12-02 03:51

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

$ docker ps --all
CONTAINER ID    IMAGE          COMMAND                 CREATED             


        
6条回答
  •  情书的邮戳
    2020-12-02 04:26

    Use:

    docker inspect -f "{{.Path}} {{.Args}} ({{.Id}})" $(docker ps -a -q)
    

    That will display the command path and arguments, similar to docker ps.

提交回复
热议问题