`docker ps` hangs forever.
AdvancedTroubleshootingDaemon, install and permissions
Answer
Likely causes → dockerd or containerd deadlocked, a stuck container/shim, or exhausted resources (PIDs, FDs, disk).
Diagnose →
timeout 10 docker version
systemctl status containerd docker
kill -SIGUSR1 $(pidof dockerd); journalctl -u docker | tail # goroutine dump
df -h; ps aux | grep -c defunct
Fix → Restart containerd then docker; kill the stuck shim; reboot if kernel is wedged (D-state processes).
Prevent → Alert on daemon latency and node pressure.
More on Daemon, install and permissions
`Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?`Beginner`permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock`Beginnerdockerd fails to start after editing `daemon.json`: `unable to configure the Docker daemon with file /etc/docker/daemon.json`Intermediate`docker: command not found` right after installing Docker Desktop on macOS.Beginner`docker info` shows `WARNING: bridge-nf-call-iptables is disabled`IntermediateDocker service flaps with `failed to start daemon: Error initializing network controller: ... iptables failed`Intermediate