Docker启动filebeat怎样把filebeat.registry_file文件指定到宿主机上
Logstash | 作者 aaron3323 | 发布于2017年10月24日 | 阅读数:7178
Docker启动filebeat怎样把filebeat.registry_file文件指定到宿主机上?
-v ~/elk/filebeat/registry:/usr/share/filebeat/data/registry
我在启动docker时加了-v设置,但是日志信息显示:
2017/10/24 05:36:38.817626 output.go:341: INFO Template already exists and will not be overwritten.
2017/10/24 05:36:39.048272 file_other.go:39: ERR Rotate error: rename /usr/share/filebeat/data/registry.new /usr/share/filebeat/data/registry: device or resource busy
2017/10/24 05:36:39.048515 registrar.go:264: ERR Writing of registry returned error: rename /usr/share/filebeat/data/registry.new /usr/share/filebeat/data/registry: device or resource busy. Continuing...
直接新建了一个文件,没用我指定挂载的文件
-v ~/elk/filebeat/registry:/usr/share/filebeat/data/registry
我在启动docker时加了-v设置,但是日志信息显示:
2017/10/24 05:36:38.817626 output.go:341: INFO Template already exists and will not be overwritten.
2017/10/24 05:36:39.048272 file_other.go:39: ERR Rotate error: rename /usr/share/filebeat/data/registry.new /usr/share/filebeat/data/registry: device or resource busy
2017/10/24 05:36:39.048515 registrar.go:264: ERR Writing of registry returned error: rename /usr/share/filebeat/data/registry.new /usr/share/filebeat/data/registry: device or resource busy. Continuing...
直接新建了一个文件,没用我指定挂载的文件
1 个回复
haohao
赞同来自: aaron3323