See full command of running/stopped container in Docker

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

    Use runlike from git repository https://github.com/lavie/runlike

    To install runlike

    pip install runlike
    

    As it accept container id as an argument so to extract container id use following command

    docker ps -a -q
    

    You are good to use runlike to extract complete docker run command with following command

    runlike 
    

提交回复
热议问题