I have a tomcat running in a docker container and would like to watch was is going on in the webapps directory from the docker host. Is it possible to do this by mounting a volume without setting up a sshd in the container and without starting a shell inside?
Instead of mounting volume, you could open a new bash in your running container with docker exec
:
docker exec -it <id of running container> bash
That way, you can directly go to the folder managed by the webapp from within the container.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With