Question 11 · 12 in bank
TroubleshootingA container repeatedly restarts with CrashLoopBackOff. Which command shows the output from the previous, failed container instance?
Show answer
Answer: A
Explanation
The --previous flag retrieves logs from the last terminated instance of the container, which is where the crash reason usually appears. The current instance may have no useful output yet if it fails immediately on start.