How to view the output log of an application deployed in docker?

  docker, question

A web application is deployed in the docker container contained in tomcat. By default, the logs are exported to tomcat’s Logs directory. Now it is accessed into the container through ssh. It is too inconvenient. Is there a better way?

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