Docker Community Forums

Share and learn in the Docker community.

Usage of exit codes


(Ravikumark425) #1


Can anyone anyone tell the usage of exit codes in docker?

For ex:
$ docker run -it test

root@f38c87f2a42d:/# exit 13

Now echo $? --> shows 13
Whats the use of this?

(Manmedia) #2

More in automation scripts where codes are analysed and decisions are made
based on the types. I haven’t done this myself but the codes are
demystified somewhere in docker dev docs.