Use this when container automation fails to build, start or connect.
Container Automation Troubleshooting
Troubleshoot container automation by checking docker logs and inspect output, image tags and pull errors, port conflicts, volume permissions, network names, Compose file syntax and the daemon's own logs.
1. Failures: image pull (auth/rate limits), port conflicts, health checks, OOM kills, volume permissions.
2. Check logs and events.
3. Inspect exit codes.
4. Reproduce locally.
5. Fix and redeploy.
deploy → pull → create → start → health → error
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
docker ps --all --format "{{.ID}}\t{{.Image}}\t{{.Status}}\t{{.Names}}"Primary Commands
Configuration and operational commands for this Topic.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verify desired spec, runtime instance and the workload probe Verify boundary
Verification compares the desired container specification with the actual scheduled/runtime object, confirms the expected image digest and configuration, and inspects events or logs for the same object UID or container instance. Readiness/health state must reach the expected condition, after which the original workload probe is repeated through the same service/network path that failed. If persistent storage is involved, verify the mounted volume and required data separately. Orchestrator “created” or “running” status shows only those layers, but it does not show the application is ready or reachable.
Step 2 Command read-back and what it shows Verify boundary
Known-good is the expected container is present with a stable running status and the original service request succeeds through the intended network path; broken state is the container is missing, exited, repeatedly restarting, or remains running while the application endpoint is unhealthy or unreachable. Container listing shows runtime lifecycle state only, but it does not show application health, data correctness or downstream dependency availability.
Step 3 Branch from object acceptance to scheduling, pull, runtime and readiness Narrow the fault
If the container object is rejected, inspect schema, authorization and admission policy before debugging nodes. If accepted but unscheduled, check placement constraints, quotas and available CPU/memory; if scheduled but not created, inspect image pull credentials, registry reachability and runtime events. A running container with a failed readiness or health check moves the boundary into process startup, dependencies, ports, configuration and probes. Volume mount and network setup failures are separate infrastructure branches. Do not treat repeated reconciliation attempts as progress unless the failure reason or owned boundary changes.
Step 4 Common mistakes Narrow the fault
- Ignoring
docker logsanddocker inspectexit codes.
Step 5 Observation-driven branch and next-check logic Narrow the fault
If the container is absent, inspect deployment intent and runtime events; if it exists but is exited/restarting, inspect exit code, logs, mounts and entrypoint; if it is running but the service fails, move to health checks, published ports, network reachability and application dependencies.
- docker logs and inspect show most causes.
- Port conflicts and volume permissions are common.
- Compose config validates files.
docker logs <c>— container logsdocker events --since 30m— daemon eventsjournalctl -u docker --since -1h— daemon logs
ReferenceWhy it matters1 section · depth on demand
Container automation crosses desired object, scheduler and runtime state
Container Automation troubleshooting must distinguish the automation request from orchestrator acceptance, scheduling, image retrieval, runtime creation, network/storage attachment and workload readiness. A created deployment or container object is only desired state; the scheduler may still lack resources, the registry may deny an image, the runtime may crash immediately, or readiness may keep traffic away from an otherwise running process. Preserve object UID/task ID, image digest and target node so evidence refers to the same workload instance rather than a replacement created by reconciliation.
ReferenceHow it works1 section · depth on demand
How it works
Container Automation Troubleshooting is governed by orchestrator intent, container lifecycle state, image/runtime configuration and the workload process inside each container. The automation layer submits create/start/stop intent to the container runtime; the runtime owns container state while the image entrypoint and application own the process that determines whether a running container is actually useful. Image availability, mounts, networks, secrets, host resources and application dependencies remain adjacent failure points. The important state separation is that a created container is not equivalent to a running container, and a running container is not equivalent to a healthy application endpoint.
ReferenceImportant terms & boundaries1 section · depth on demand
Method
Container automation troubleshooting follows the path from image to running workload.
1. Image: does the tag/digest exist, can the node pull it (credentials, network)?
2. Scheduling: resources, node selectors, taints (kubectl describe pod).
3. Start: command, environment, mounted config/secrets.
4. Runtime: logs, exit codes, OOM kills, probes failing.
5. Pipeline: did the deployment step apply what you expected (kubectl diff, Compose config)?
| Symptom | Likely cause |
|---|---|
| ImagePullBackOff | Wrong tag, missing pull secret |
| CrashLoopBackOff | App error, missing config |
| Pod Pending | Insufficient resources, unschedulable |
| Deploy "succeeded", old version runs | Tag reused (latest), pull policy |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Container Automation > Container Automation Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.docker.com/ · confidence 94%