Docker Run退出代码的权威列表是什么? [英] What is the authoritative list of Docker Run exit codes?
本文介绍了Docker Run退出代码的权威列表是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有谁知道可以在哪里找到退出代码?
解决方案
对于Docker> = 1.10,请参阅此PR 遵循标准 chroot退出代码:
-
125
:docker run
本身失败 -
126
:无法调用contains命令 -
127
:如果包含命令无法找到 -
128 + n
致命错误信号n
-
130
=(128 + 2)
由Control-C终止的容器 -
137
=(128 + 9)
容器收到SIGKILL
-
143
=(128 + 15)
容器收到一个SIGTERM
-
有关当前版本的更多信息,请参阅href =https://docs.docker.com/engine/reference/run/#/exit-status =nofollow noreferrer> Docker文档。
Apologies if this has been asked, but nowhere in the Docker documentation can I find an authoritative list of exit codes (also called exit status). Surprising! I see suggestions about making it consistent, but no docs on docker.com.
Does anyone know where the exit codes can be found?
解决方案
For Docker >= 1.10 see this PR, which follows standard chroot exit codes:
125
:docker run
itself fails126
: contained command cannot be invoked127
: if contained command cannot be found128 + n
Fatal error signaln
:130
=(128+2)
Container terminated by Control-C137
=(128+9)
Container received aSIGKILL
143
=(128+15)
Container received aSIGTERM
Check Docker documentation for more information about the current version.
这篇关于Docker Run退出代码的权威列表是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文