【发布时间】:2019-08-01 03:14:02
【问题描述】:
我在 openshift 上运行基于 opencpu 的映像,每次 pod 启动时,仅几秒钟后,它就会崩溃并出现错误:
command terminated with non-zero exit code: Error executing in Docker Container: 137
事件选项卡仅显示以下三个事件,终端日志也不显示任何内容。
Back-off restarting the failed container
Pod sandbox changed, it will be killed and re-created.
Killing container with id docker://opencpu-test-temp:Need to kill Pod
我真的不知道为什么容器每隔几秒钟就会重新启动。此图像在本地运行良好。
有没有人告诉我如何调试这个问题?
【问题讨论】:
-
查看
oc debug命令。它允许您运行具有相同部署配置和映像的调试 pod,但它不会启动应用程序。然后,您可以从提供的 shell 手动运行显示的启动命令,看看会发生什么。如下所述,内存是一个很好的候选对象。