tomcat - 部署在docker的应用,其输出日志如何查看?
怪我咯
怪我咯 2017-04-22 08:58:55
0
2
746

一个web应用部署在包含在tomcat的docker容器,日志默认是输出到tomcat的 logs目录,现在是通过ssh进入容器查看,太不方便了,有没有更好的方法?

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(2)
阿神

You can try using -v to share the space inside the container to the host and view it directly on the host.

Peter_Zhu

Our company has implemented dockerization of all services. Our current plan is to add -v to the startup script, mount the logs of each service to the log directory of the corresponding service folder on the host, and then build a splunk system for viewing , currently working very well.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!