ilogtail采集容器日志,有办法指定docker.sock的路径吗? #490
-
如题,我把ilogtail放在了容器里面,因为容器第一个执行命令是/usr/sbin/init,会覆盖/var/run/里面的内容,挂载的docker.sock会被覆盖掉,所以我把宿主机的/var/run/docker.sock挂载到了/docker.sock下,但是我发现ilogtail无法正常采集容器日志了,请问这个问题有解吗?ilogtail读取容器信息应该是用的这个文件吧?我看vector是可以通过配置docker_host指定docker.sock路径的,不知道ilogtail有没有相关功能? ilogtail配置:
vector 配置:
|
Beta Was this translation helpful? Give feedback.
Answered by
yyuuttaaoo
Nov 4, 2022
Replies: 1 comment
-
可以通过环境变量 DOCKER_HOST = "path/docker.sock" 指定 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
mcy567
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
可以通过环境变量 DOCKER_HOST = "path/docker.sock" 指定