How to get the numeric exit status of an exited docker container?

前端 未结 0 803
梦毁少年i
梦毁少年i 2021-02-12 06:15

When a container exits, docker ps -a shows its exit code (scroll

$ docker run ubuntu bash -c \"exit 1\"
CONTAINER ID   IMAGE    COMMAND                      


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题