我尝试在我的容器(docker)上执行 conky 以使用 ssh 隧道监视它。 如果我尝试在我的管理服务器上执行 conky 没问题,但在我的容器上我不能!
pc --> 管理服务器 --> 容器
我已经安装了 libimlib2-dev 但我再次收到此错误:
Conky: can't open display:
***** Imlib2 Developer Warning ***** :
This program is calling the Imlib call:
imlib_context_free();
With the parameter:
context
being NULL. Please fix your program.
最佳答案
请通过在容器内运行一些经典的 X 客户端(例如 xeyes
或 xclock
)来检查 SSH X 转发是否设置正确。如果它们运行没有问题,但只有 Conky 失败,那么这可能是 Conky 的错误,您可能需要联系其开发人员。
关于linux - 无法在docker上执行conky,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25223876/