李林超博客
首页
归档
留言
友链
动态
关于
归档
留言
友链
动态
关于
首页
Java
正文
记一次CentOS 7安装Docker报错
Leefs
2020-03-29 PM
3470℃
0条
# CentOS 7安装Docker报错 在启动Docker时出现以下问题: ```linux Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details. ``` 执行**systemctl status docker.service**命令,打印出相关的日志: ```java [root@localhost ~]# systemctl status docker.service ● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled) Active: failed (Result: start-limit) since Sun 2020-03-29 11:29:46 EDT; 11s ago Docs: https://docs.docker.com Process: 66408 ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock (code=exited, status=1/FAILURE) Main PID: 66408 (code=exited, status=1/FAILURE) Mar 29 11:29:44 localhost systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE Mar 29 11:29:44 localhost systemd[1]: Failed to start Docker Application Container Engine. Mar 29 11:29:44 localhost systemd[1]: Unit docker.service entered failed state. Mar 29 11:29:44 localhost systemd[1]: docker.service failed. Mar 29 11:29:46 localhost systemd[1]: docker.service holdoff time over, scheduling restart. Mar 29 11:29:46 localhost systemd[1]: Stopped Docker Application Container Engine. Mar 29 11:29:46 localhost systemd[1]: start request repeated too quickly for docker.service Mar 29 11:29:46 localhost systemd[1]: Failed to start Docker Application Container Engine. Mar 29 11:29:46 localhost systemd[1]: Unit docker.service entered failed state. Mar 29 11:29:46 localhost systemd[1]: docker.service failed. ``` 上面的报错信息在百度上搜了一堆也解决不了问题,,, 于是在不经验间执行查看docker的版本信息,发现报错原因 ``` [root@localhost ~]# docker version Client: Docker Engine - Community Version: 19.03.8 API version: 1.40 Go version: go1.12.17 Git commit: afacb8b Built: Wed Mar 11 01:27:04 2020 OS/Arch: linux/amd64 Experimental: false error during connect: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.40/version: read unix @->/var/run/docker.sock: read: connection reset by peer ``` 然后就重启一下Linux服务器 报如下错误 ``` Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? ``` 解决办法: ``` [root@localhost ~]# systemctl daemon-reload [root@localhost ~]# sudo service docker restart [root@localhost ~]# sudo service docker status [root@localhost ~]# systemctl start docker ``` docker可以正常执行!!! 解决问题也有点乱,不过好在问题解决,可以安心睡觉了
标签:
Docker
非特殊说明,本博所有文章均为博主原创。
如若转载,请注明出处:
https://lilinchao.com/archives/771.html
上一篇
责任链设计模式简介
下一篇
SpringBoot全局异常处理器配置
评论已关闭
栏目分类
随笔
2
Java
326
大数据
229
工具
31
其它
25
GO
47
NLP
4
标签云
Spark Streaming
Java阻塞队列
Beego
SpringCloudAlibaba
序列化和反序列化
Java工具类
FastDFS
Kibana
Yarn
Spark Core
高并发
随笔
Elastisearch
Thymeleaf
机器学习
Hadoop
RSA加解密
Spark
gorm
容器深入研究
MyBatis-Plus
nginx
字符串
MyBatis
Azkaban
数据结构和算法
LeetCode刷题
JavaScript
SpringBoot
FileBeat
友情链接
申请
范明明
庄严博客
Mx
陶小桃Blog
虫洞
评论已关闭