我正在尝试在我的 Ubuntu 16.04 网络服务器上启动并运行 docker。
我已遵循此处描述的安装说明:
https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04
当我尝试启动 docker(docker run hello-world)时,我收到以下消息:
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
当我尝试启动该服务时:
sudo systemctl start docker.service
我收到以下错误消息:
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: failed (Result: start-limit-hit) since Wed 2019-01-30 06:26:20 CET; 2min 34s ago
Docs: https://docs.docker.com
Process: 17219 ExecStart=/usr/bin/dockerd (code=exited, status=1/FAILURE)
Main PID: 17219 (code=exited, status=1/FAILURE)
答案1
我还有一个 Ubuntu 16.04 LTS 安装。
尝试运行这个:运行:
#"journalctl -fu docker"
这就是结果:
dockerd[7688]: time="2020-01-23T10:11:19.306442198+01:00" level=fatal msg="Your Linux kernel version 2.6.32-042stab127.2 is not supported for running docker. Please upgrade your kernel to 3.10.0 or newer."
这就是我的观点。内核需要升级。