Jelastic run.log 无法在 docker 上工作

Jelastic run.log not working on docker

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

目前 docker 图像将日志打印到标准输出,并在任何地方工作,除了那里。

我们发现您的 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

...日志已出现:

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

此致,Jelastic 团队。