Diagnose the Crash Loop
Read the logs of a restarting container and fix its missing config.
A intermediate Docker challenge worth 10 points. Solve it hands-on in a real Docker environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: PagerDuty is screaming: orders-api shows Restarting in docker ps. It dies instantly, over and over.
Tasks:
- Find out why it's crashing (
docker logs orders-api— also visible in the browser panel's Console tab) - Recreate the container fixed — same name, same image (
orders-api:v1), keep--restart on-failure - The database it needs is at
db.internal
Commands to learn: docker logs, docker run -e, docker inspect
Run check when done.