See full command of running/stopped container in Docker

前端 未结 6 1456
傲寒
傲寒 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:40

    Use:

    docker inspect -f "{{.Name}} {{.Config.Cmd}}" $(docker ps -a -q)
    

    ... it does a "docker inspect" for all containers.

提交回复
热议问题