How to Manager log in Docker
soft link to STDOUT, STDERR to collect log
RUN ln -sf /dev/stdout /var/log/nginx/access.log
mount bind space to collect log
--mount type=bind,src=/opt/logs, dst=/usr/local/tomcat/logs/
mount volume to collect log
--mount type=volume src=volume_name dst=/use/local/tomcat/logs/
use redis/mq to collect log
docker→ redis/mq→ logstash → elasticsearch
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 JIE's Blos!