Hi,
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?
Share and learn in the Docker community.
Hi,
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?
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.
Regards,