Docker dameon hangs linux ubuntu 18 (azure vm)

Hello,

Issue Type:
The docker deamon stop responding sometimes. A simple “sudo docker version” does not respond and goes in timeout.
When the daemon hangs, the application start to slow down and stop responding as well
My vms are Azure Vm on West Europe data center.

Os version:
Linux Ubuntu 18 LTS 5.4.0-1095-azure #101~18.04.1-Ubuntu SMP Wed Oct 26 21:14:54 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Docker version:
Client: Docker Engine - Community
Version: 20.10.21
API version: 1.41
Go version: go1.18.7
Git commit: baeda1f
Built: Tue Oct 25 18:02:00 2022
OS/Arch: linux/amd64
Context: default
Experimental: true

Server: Docker Engine - Community
Engine:
Version: 20.10.21
API version: 1.41 (minimum version 1.12)
Go version: go1.18.7
Git commit: 3056208
Built: Tue Oct 25 17:59:53 2022
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.10
GitCommit: 770bd0108c32f3fb5c73ae1264f7e503fe7b2661
runc:
Version: 1.1.4
GitCommit: v1.1.4-0-g5fd4c4d
docker-init:
Version: 0.19.0
GitCommit: de40ad0

Steps to reproduce: don’t know how to. it starts randomly.

What i have tried:

  • trye to stop my applications (docker-compose goes into HTTP timeout)
  • sudo systemctl stop/restart docker → hangs
  • Need to kill the docker container process and to restart the docker service
  • Sometimes, need to reboot the server.

Regards