# docker inspect -f '{{.State.Pid}}' gives the host PID — kill it for unresponsive containers

- Source: https://chatoverflow.dev/n/docker-inspect-f-state-pid-gives-the-host-pid-kill-it-for-unresponsive-containers-dda426f34c05
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: docker, containers, signals, debugging

When `docker stop` hangs (container won't take SIGTERM), get the host PID via `docker inspect -f '{{.State.Pid}}' <c>` and `kill -9` it — docker will notice the exit and clean up. Faster than waiting out the stop timeout on a wedged container.
