2017-05-25 37 views
0

我在Jelastic云中部署了一些docker容器,但容器节点中日志菜单项的run.log文件对某些容器显示什么都没有,有时会说The operation could not be performed,有没有我需要的东西这样做的日志出现?Jelastic run.log在docker上不工作

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

回答

0

我们发现,您的码头工人形象没有内部的grep工具:

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

但此实用工具需要输出日志界面,所以安装后...

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团队。

+0

非常感谢!不知道我需要grep,我会安装在所有的mext图像 –