Every docker hangs. I encountered first this yesterday (with a known incident in one of our remote server 2 days ago Feb 16 2022).
- All docker compose commands I tried hanged (docer-compose up, down, ps)
- Thus I tried docker commands, which also hanged (e.g docker -v docker --help)
I followed What to do when all docker commands hang? - #4 by samsgates but to no avails, first I tried stoping docker service :
$ sudo system docker stop # hangs…
I then tried killing the related process
$ ps -A | grep docker
12381 ? 00:00:00 dockerd
3147 ? 00:00:00 docker-proxy
3189 ? 00:00:00 docker-proxy
3222 ? 00:00:00 docker-proxy
3239 ? 00:00:00 docker-proxy
3321 ? 00:00:00 docker-proxy…
$ sudo pkill -x docker-proxy
$ sudo pkill -x dockerd
$ ps -A | grep docker
13190 ? 00:00:02 dockerd
14285 ? 00:00:00 docker-proxy
14295 ? 00:00:00 docker-proxy
14347 ? 00:00:00 docker-proxy
14354 ? 00:00:00 docker-proxy
14424 ? 00:00:00 docker-proxy
14435 ? 00:00:00 docker-proxy…
The problem happened on one remote server, and twice on my local machine, I was finally able to overcome the problem yesterday on my local machine by wipping all files and restarting and on the remote machine by reinitializing to a clean ubuntu install but the problem keep happening.
How should I proceed? I could manage to get it working again but I don’t want it to fail every morning.
IOS : Pop_OS! 20.04 LTS, Ubuntu 20.04 LTS
Docker version ( 20.10.12 on remote server)
Client: Docker Engine - Community
Version: 20.10.12
API version: 1.41
Go version: go1.16.12
Git commit: e91ed57
Built: Mon Dec 13 11:45:33 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.12
API version: 1.41 (minimum version 1.12)
Go version: go1.16.12
Git commit: 459d0df
Built: Mon Dec 13 11:43:41 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.12
GitCommit: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
runc:
Version: 1.0.2
GitCommit: v1.0.2-0-g52b36a2
docker-init:
Version: 0.19.0
GitCommit: de40ad0