# Guided Exercise: Which Docker Command Actually Does This? This is a paper exercise — commit to an answer before checking it in the Lab. ## Your task For each goal, name the ONE Docker command you'd use: 1. "See every container, including ones that have stopped." 2. "Run a one-off diagnostic command inside a container that's already running." 3. "Read what a container has printed to its logs so far." 4. "Check the exact value of one specific field (like whether it's currently running) without reading the entire inspect output." 5. "Completely remove a running container in one step, without stopping it first separately." ## A worked shape to check yourself against 1. `docker ps -a` 2. `docker exec ` 3. `docker logs ` 4. `docker inspect --format '{{...}}'` 5. `docker rm -f ` ## Instructor Notes **Facilitation:** Have students justify why each answer fits the described GOAL specifically, not just recite familiar syntax. **Approximate timing:** 8-10 minutes live discussion; 5 minutes self-paced.