How can I preserve the logs a docker/podman container even after the container dies?
4
votes
1
answer
2142
views
I have pods running in OpenShift that I would like to view the logs for. In particular, I want to see the logs when the pod is terminated.
However, when the pod is terminated the logs are deleted as far as I can tell. I've tried tailing 'oc logs ' but I lose the output once the pod is gone.
What is a clean way to copy these logs in real time or print them to stdout so that they will persist after the pod is killed?
Asked by user21113865
(143 rep)
Feb 9, 2023, 04:49 PM
Last activity: Aug 29, 2023, 09:04 AM
Last activity: Aug 29, 2023, 09:04 AM