Jelastic run.log不在docker上工作

时间:2017-05-25 01:52:57

标签: logging docker jelastic

我正在Jelastic云中部署一些docker容器,但是容器节点中日志菜单项的run.log文件对于某些容器没有显示任何内容,有时会说The operation could not be performed,我需要什么这样做会显示日志吗?

目前,docker图像将日志打印到stdout,并且可以在任何地方工作,除了那里。

1 个答案:

答案 0 :(得分:0)

我们发现你的Docker镜像里面没有grep实用程序:

node46581-env-5967225:/# grep error -i /var/log/run.log 
-bash: grep: command not found

但是这个实用程序是将日志输出到GUI所必需的,所以安装后......

node46581-env-5967225:/# apk add grep
(1/2) Installing pcre (8.38-r1)
(2/2) Installing grep (2.25-r0)
Executing busybox-1.24.2-r11.trigger
OK: 105 MiB in 35 packages

...日志出现了:

enter image description here

因此,为了摆脱这个问题,你必须考虑在你的存储库中安装grep。

最好的问候,Jelastic团队。