Docker Run退出代码的权威列表是什么? [英] What is the authoritative list of Docker Run exit codes?

查看:194
本文介绍了Docker Run退出代码的权威列表是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果已经询问了这个问题,但是 Docker文档中没有任何地方可以找到退出代码的权威列表(也称为退出)状态)。奇怪!我看到有关使它一致的建议,但在docker.com上没有文档。



有谁知道可以在哪里找到退出代码?

解决方案

对于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 fails
  • 126: contained command cannot be invoked
  • 127: if contained command cannot be found
  • 128 + n Fatal error signal n:
    • 130 = (128+2) Container terminated by Control-C
    • 137 = (128+9) Container received a SIGKILL
    • 143 = (128+15) Container received a SIGTERM

Check Docker documentation for more information about the current version.

这篇关于Docker Run退出代码的权威列表是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆