How to get the numeric exit status of an exited docker container? August 27, 2023 by Tarik Use docker inspect with templates: $ docker inspect c2c769c4b9ef --format="{{.State.ExitCode}}" 1