ubuntu vps Installation docker error: Cannot connect to daemon at unix: and and and var docker. Problem resolved
- 2020-06-12 11:32:33
- OfStack
The problem found
Recently, I needed to use docker in my work, so I found a few tutorials to install it enthusiastically.
wget -qO- https://get.docker.com/ | sh
then
docker info
Output:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
through
service docker restart
docker attempt did not change, to view the log tail - 5 f/var/log/upstart/docker log found
time="2017-04-23T01:13:59.857654612-04:00" level=fatal msg="Your Linux kernel version 2.6.32-042stab116.2 is not supported for running docker. Please upgrade your kernel to 3.10.0 or newer."
Problem solving
The problem is that the current kernel 2.6 version of linux is too low and needs to be upgraded above 3.10. vps comes with template [face mask] and vps based on OpenZV 6 is 2.6 by default, docker requires 3.x based kernel, only vps based on OpenZV 7 is supported (3.x based kernel).
conclusion