0

I have just added the Logentries Docker container, to a Rancher setup. We have another set of LE Docker containers running already just fine. However, this new container will not start – the logs say:

events.js:85
  throw er; // Unhandled 'error' event
Error: connect ENOENT
  at exports._errnoException (util.js:746:11)
  at PipeConnectWrap.afterConnect [as oncomplete] (net.js:1012:19)

I am not familiar enough with Logentries' Docker-based setup to understand what is going on here.

It looks like it is failing to connect to something, but what? How can I try to find out?

4

1 回答 1

0

所以问题在于链接docker.sock到 Logentries 容器。

Logentries 的文档说你需要一个类似这样的 docker 命令:

docker run -v /var/run/docker.sock:/var/run/docker.sock logentries/docker-logentries -t <token>

但是在 Rancher 中你不需要输入原始的 Docker 命令,你必须在创建服务时附加卷,相当于-v /var...docker 命令中的选项。

用于输入卷的 Rancher 小部件

于 2019-02-06T17:05:27.380 回答