Hotfix Inside a Running Container
Use docker exec to fix a live container without restarting it.
A beginner Docker challenge worth 3 points. Solve it hands-on in a real Docker environment in your browser - no local setup, no fake shells.
The Challenge
Scenario: A teammate flipped production to a maintenance page and left on vacation. The web container on port 8080 still serves "503 — DOWN FOR MAINTENANCE".
Check the browser panel: that's what users see right now. Save it as your "Before" snapshot.
Tasks:
- Get a shell (or run a command) inside the running container with
docker exec - Replace
/usr/share/nginx/html/index.htmlso the page contains Welcome to ShellGenius - No restart, no redeploy — fix it live, then refresh the browser panel
Commands to learn: docker exec -it, editing files inside containers
Run check when done.