devops.observer
← All labs

Docker / Intermediate / 20–30 min

The container that will not stay up

A container exits during startup. Inspect its exit status and logs, correct its launch configuration, and verify its health endpoint.

LAB IDdevops-03-docker-startup-failureTRACK / devops.observer
Engineer investigating a server rack in a DevOps troubleshooting lab

The scenario

A local Compose deployment fails immediately after starting. Recover the application by fixing its configuration without changing its source code.

Mission objectives

  • Inspect the stopped container and its startup logs.
  • Correct the service launch configuration and start it again.
  • Verify that the running application responds to its health check.

Get the lab

Download and inspect the installer before running it. It checks the archive's SHA-256 digest and refuses to overwrite an existing lab directory.

curl -fsSLO https://devops.download/labs/devops-03-docker-startup-failure.sh
less devops-03-docker-startup-failure.sh
bash devops-03-docker-startup-failure.sh
cd labs/devops-03-docker-startup-failure
./setup.sh

When you've made your changes, run ./verify.sh. Remove lab resources with ./teardown.sh.

Download the archive instead ↗

Need a nudge?

Hint #1

Inspect the Compose service state and the application's logs before recreating the container.

Hint #2

The startup log identifies a configuration value required by the application.

Hint #3 · Deep Dive Runbook on opsbreakfix.com

Read the deep dive runbook ↗

Solved it?

Read the Official Root Cause Analysis & Certification Roadmap on opsbreakfix.com

Continue to opsbreakfix.com ↗

OpsBreakFix ecosystem

Explore the sites.

One connected home for operations knowledge and tools.