Inspect a container
Container inspection reveals the actual image, mounts, limits and network setup. Compare these effective settings with the intended deployment manifest.
Understand the pattern
Container inspection reveals the actual image, mounts, limits and network setup. Compare these effective settings with the intended deployment manifest.
Interpret the evidence
Reconcile the running r2 image with the intended r3 deployment.
A tempting mistake
The source manifest alone proves which image is running.
All names, measurements, prices, versions, and thresholds in this exercise are fictional training data. The evidence supports this bounded scenario, not a claim about a live provider.
Worked example and expected result
$ cat /opt/ai-lab/cases/aiops-serving-resources-004.json{
"fixture": "Fictional training data; not a live measurement.",
"intended_image": "gateway:r3",
"running_image": "gateway:r2",
"mount_read_only": true
}Exit status: 0. The command completed successfully in the training fixture.
$ jq .running_image /opt/ai-lab/cases/aiops-serving-resources-004.json"gateway:r2"
Exit status: 0. The command completed successfully in the training fixture.
$ printf '%s\n' 'reconcile-image-drift' > /home/learner/lab/aiops-serving-resources-004-decision.txt(no output; exit 0)
Exit status: 0. The command completed successfully in the training fixture.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Next: Read container resource useTry an incident drillAnonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.
Keep learning
- 01List training containersA container list shows process-level state and names. A running container may still contain an application that has not passed readiness checks.Practice
- 02Read container resource useResource limits and current use must be interpreted together. Sustained memory close to a hard limit can lead to termination even when the host still has free memory.Practice
- 03Validate compose configurationConfiguration validation catches malformed deployment structure before activation. A syntactically valid Compose file still needs separate readiness and workload checks.Practice