报错信息如下:

[root@localhost localdisk]# 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@localhost localdisk]# systemctl status docker

docker.service - Docker Application Container Engine

Loaded: loaded (/usr/lib/systemd/system/docker.service; enabled; vendor preset: disabled)

Active: failed (Result: exit-code) since 日 2019-05-19 17:15:19 CST; 6s ago

Docs: http://docs.docker.com

Process: 13393 ExecStart=/usr/bin/dockerd-current --add-runtime docker-runc=/usr/libexec/docker/docker-runc-current --default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd --userland-proxy-path=/usr/libexec/docker/docker-proxy-current --init-path=/usr/libexec/docker/docker-init-current --seccomp-profile=/etc/docker/seccomp.json --graph=/localdisk/docker --storage-driver=overlay --registry-mirror=https://docker.mirrors.ustc.edu.cn $OPTIONS $DOCKER_STORAGE_OPTIONS $DOCKER_NETWORK_OPTIONS $ADD_REGISTRY $BLOCK_REGISTRY $INSECURE_REGISTRY $REGISTRIES (code=exited, status=1/FAILURE)

Main PID: 13393 (code=exited, status=1/FAILURE)

5月 19 17:15:19 localhost.localdomain systemd[1]: Starting Docker Application Container Engine...

5月 19 17:15:19 localhost.localdomain dockerd-current[13393]: unable to configure the Docker daemon with file /etc/docker/daemon.json: the following direc...edu.cn])

5月 19 17:15:19 localhost.localdomain systemd[1]: docker.service: main process exited, code=exited, status=1/FAILURE

5月 19 17:15:19 localhost.localdomain systemd[1]: Failed to start Docker Application Container Engine.

5月 19 17:15:19 localhost.localdomain systemd[1]: Unit docker.service entered failed state.

5月 19 17:15:19 localhost.localdomain systemd[1]: docker.service failed.

Hint: Some lines were ellipsized, use -l to show in full.

 

解决方法:

1.防火墙和selinux都关了

2.修改/etc/docker/daemon.json这个文件(就这样粘贴复制,别多逗号)

{

"registry-mirrors": ["https://docker.mirrors.ustc.edu.cn"]

}

3.重启docker,在不行重启虚拟机

systemctl daemon-reload

systemctl restart docker

效果如下:

 

最新文章

  1. Haskell Platform (windows)
  2. [BZOJ1924][Sdoi2010]所托门王的宝藏(缩点+DP)
  3. vue 2.0-1
  4. Eclipse插件CheckStyle的安装和使用
  5. Linux命令-sudo
  6. Android之获取本地图片并压缩方法
  7. 使用dbstart 和dbshut 脚本来自动化启动和关闭数据库
  8. JVM最多支持多少个线程?
  9. 【USACO】奶牛抗议 树状数组+dp
  10. codeforces 813E 主席树
  11. MyBatis(十一) 嵌套结果集的方式,使用collection标签定义关联的集合类型的属性封装规则
  12. Java高级特性 第11节 JUnit 3.x和JUnit 4.x测试框架
  13. android招聘啦,美图秀秀欢迎你加入!
  14. 手机端3d旋转木马效果+保存图片到本地
  15. linux 为tomcat指定jdk
  16. Java入门系列(八)多线程
  17. scala中Map和Tuple
  18. 【基础知识六】支持向量机SVM
  19. 使用hadoop-daemon.sh 启动bootstrapStandby nameNode异常
  20. 使用efwplusScript开发Winform程序【像小程序那样开发PC软件】

热门文章

  1. Zabbix 5.0:磁盘读写监控
  2. 阿里云服务器安装Docker并部署nginx、jdk、redis、mysql
  3. .Net Core gRPC 实战(一)
  4. django2中namespace和name的使用
  5. Linux 文件不能被root修改与编辑原因
  6. lms框架应用服务接口和服务条目详解
  7. Non-Maximum Suppression,NMS非极大值抑制
  8. CVPR2020论文点评: AdderNet(加法网络)
  9. YOLOv5目标检测源码重磅发布了!
  10. Django(55)GenericAPIView源码分析