问题一 docker search error
描述:使用docker 搜索镜像时出现错误,错误信息如下:
[root@ ~]# docker search mongo Error response from daemon: Get https://index.docker.io/v1/search?q=mongo&n=25: dial tcp: lookup index.docker.io on [240e:40:8000::11]:53: read udp [240e:82:1d01:ff40:d250:8fae:4a4a:c555]:52774->[240e:40:8000::11]:53: i/o timeout
问题原因:
dns解析问题,修改网络配置文件,加入dns,重启网络即可
vi /etc/sysconfig/network-scripts/ifcfg-* #add dns DNS1=8.8.8.8 DNS2=114.114.114.114 #save & exit service network restart
问题排查:
起初怀疑是docker配置的加速器问题,修改/etc/docker/daemon.json后重启dockers失败
问题二 docker start error
描述:Job for docker.service failed because the control process exited with error code. See “systemctl status docker.service” and “journalctl -xe” for details.
[root@ docker]# vi daemon.json [root@ docker]# systemctl daemon-reload [root@ 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.
解决办法:
1、删除/etc/docker/daemon.json文件
2、修改此文件,然后重新执行以上命令,直到不出现错误为止
原文链接:https://www.cnblogs.com/gail-hu/p/12753753.html
原创文章,作者:优速盾-小U,如若转载,请注明出处:https://www.cdnb.net/bbs/archives/23254