ubuntu16.0.4安装docker问题
首先贴出问题
systemctl restart docker之后会出现
Job for docker.service failed because the control process exited with error code.
See "systemctl status docker.service" and "journalctl -xe" for details.
root@ubuntu:~# systemctl status docker.service
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2021-08-05 14:29:49 CST; 2s ago
Docs: https://docs.docker.com
Process: 32497 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE)
Main PID: 32497 (code=exited, status=1/FAILURE)
Aug 05 14:29:49 ubuntu systemd[1]: docker.service: Service hold-off time over, scheduling restart.
Aug 05 14:29:49 ubuntu systemd[1]: docker.service: Scheduled restart job, restart counter is at 3.
Aug 05 14:29:49 ubuntu systemd[1]: Stopped Docker Application Container Engine.
Aug 05 14:29:49 ubuntu systemd[1]: docker.service: Start request repeated too quickly.
Aug 05 14:29:49 ubuntu systemd[1]: docker.service: Failed with result 'exit-code'.
Aug 05 14:29:49 ubuntu systemd[1]: Failed to start Docker Application Container Engine.
root@ubuntu:~# yum -y install yum-utils device-mapper-persistent-data lvm2
Setting up Install Process
No package yum-utils available.
No package device-mapper-persistent-data available.
No package lvm2 available.
Error: Nothing to do
如果运行处docker versiion之外的docker命令还会出现
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
我在网上查了好多安装方式 都不行 这个时候我发现 如图
https://docs.docker.com/engine/install/ubuntu/#os-requirements在这个网站上查到的
也就是说问题是由于我下载安装的一直都是按照最新版本来的 或者高一点的版本后来我选择了 sudo apt-get install docker-ce=17.12.0ce-0ubuntu这个版本 其他的安装过程各位大V们都写过了 我就不再重复了
希望对你们有用 雨过天晴的心情真舒服 哈哈。。。