19

There are good explanations on how to resolve this issue. SOF Q1, SOF Q2 and many more related questions on SOF and internet.

My worry is, what causes this issue and why docker ends up in this state. (/var/run contains run time data of an application i.e docker. Why is docker not able to connect/ or write here. If this point is not relevant... leave it.).

My concern is, our docker system was well working and stable for several days and suddenly we see this issue. I can not always ask the sys admins to restart docker or the linux server (process issues.. and of course I wan't to prevent it by having better understanding of docker ). So i got to prevent this issue from happening.

We are using fedora based linux and the docker version info is:

Server Version: 17.12.0-ce
Storage Driver: overlay2 Backing
Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs

Can provide more docker info if require.

Ivan Aracki
  • 4,861
  • 11
  • 59
  • 73

2 Answers2

18

See this bug report.

This is fixed in containerd 1.0.2 (currently in release candidate phase). Once this is released we can include it in a dockerd patch release.... this would be a problem for all versions of docker from 17.11 and up... but note the containerd patch would only be included in 17.12 and 18.03 (assuming the containerd patch is released soon).

Reported workaround is to killall -9 dockerd or reboot the system, but it's better update docker version to 17.12.1 or 18.03.

Nefreo
  • 2,162
  • 1
  • 15
  • 24
6

In my case I have been installing docker using binary files so there was no docker service to start or to stop, but I have found that the problem was that the containerd itself was not running, so if that is your problem you need to rerun containerd service using sudo containerd & then run sudo dockerd &, hope this would be helpful.

Amr Hashem
  • 191
  • 2
  • 5