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.