【问题标题】:Jelastic run.log not working on dockerJelastic run.log 在 docker 上不起作用
【发布时间】:2017-05-25 01:52:56
【问题描述】:

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

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

【问题讨论】:

    标签: logging docker jelastic


    【解决方案1】:

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

    【讨论】:

    • 非常感谢!不知道我需要 grep,我将安装在所有 mext 图像中
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-06-08
    • 1970-01-01
    • 1970-01-01
    • 2021-12-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多