docker-logstash 时间异常
作者:互联网
早上发现Logstash没有同步数据到ES,最后发现是Logstash定时任务没执行->docker容器时间不正确,于是修改了启动脚本
docker run -it -d -p 5044:5044 -p 5045:5045
-v /usr/local/docker/logstash/config/:/usr/share/logstash/config/
-v /usr/local/docker/logstash/pipeline/:/usr/share/logstash/pipeline/
-v /usr/local/docker/logstash/jars/:/usr/share/logstash/logstash-core/lib/jars/
-e TZ="Asia/Shanghai" # 重点:设置时区
-v /etc/localtime:/etc/localtime:ro # 重点:宿主机的时钟要正确
--name=logstash logstash:7.6.2
标签:jars,异常,share,usr,docker,local,logstash 来源: https://www.cnblogs.com/xiaoyver/p/15209102.html