docker images

Practice docker images from memory — 1 Docker drill covering the safe first move and a short explanation each time.

Remove a locally cached Docker image.

docker rmi nginx:latest

Removes the image from local cache. Fails if any container (running or stopped) uses it - remove containers first or use -f. Caution note: check the target, scope, and preview or dry-run options before using this on a real system.

Safety: Inspect state before stopping, pruning, or changing running containers.

Build the habit: DockerDrill drills docker images and the rest of the Docker workflow until the safe first move is automatic. Try a Docker drill.