简体   繁体   English

如何将 weblogic 容器的管理服务器日志保存在本地文件系统中

[英]How can I save Admin server logs of weblogic container in my local file system

I'm using oracle image to start my oracle weblogic container and I want to store the Admin server logs in my local file system so that even if the container goes down or is deleted I should be able to access the logs.我正在使用 oracle 映像来启动我的 oracle weblogic 容器,并且我想将管理服务器日志存储在我的本地文件系统中,这样即使容器出现故障或被删除,我也应该能够访问日志。 How can I achieve that我怎样才能做到这一点

I'm using below command to start the container docker run -d -p 1000:7001 -p 1200:9002 --name aman_wls -v /home/aman/weblogic:/u01/oracle/properties 3e5b9fdf5fdf我正在使用以下命令启动容器 docker run -d -p 1000:7001 -p 1200:9002 --name aman_wls -v /home/aman/weblogic:/u01/oracle/properties 3e5b9fdf5fdf

I have my domain.properties file in /home/aman/weblogic我在 /home/aman/weblogic 中有我的 domain.properties 文件

添加到您的命令-v /local/path/to/logs:/container/path/to/logs

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM