I'm running a web app as a container and I'm storing the logs generated by this app in a file. But the log file generated by the app is created inside the container file system , So to access these logs when the container crashes I'm using docker volume, so that i have access to log files even if the container crashes.But i want to test if this really works when the container crashes , So any help on how to test would be highly appreciated. Thanks.
You have two options
1) Stop the container:
docker stop container_name
2) Kill the container
docker kill container_name
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