docker stop

Practice docker stop from memory. Sends SIGTERM, waits up to 10s (configurable via -t), then SIGKILL. Allows the app to flush state cleanly. Use docker ki

Gracefully stop the nginx1 container (sends SIGTERM, then SIGKILL after timeout).

docker stop nginx1

Sends SIGTERM, waits up to 10s (configurable via -t), then SIGKILL. Allows the app to flush state cleanly. Use docker kill for immediate SIGKILL. 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 stop and the rest of the Docker workflow until the safe first move is automatic. Try a Docker drill.