问题一:
CentOS报错:Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock32 error was 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
- 切换至root用户
- 找到 cat /etc/sysconfig/network-scripts/ifcfg-ens33 文件,查看ONBOOT是否为yes
- 重启网络 service network restart
- ping www.baidu.com查看网络连接是否正常
- 如果还是报错 则输入
- wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
- wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
- yum clean all
- yum makecache
问题二:
error pulling image configuration: download failed after attempts=6: dial tcp 59.188.250.54:443: i/o timeout,镜像源太差,拉取镜像失败
- 查看下防火墙的状态:systemctl status firewalld
- 关闭防火墙:systemctl stop firewalld
- 禁止开机自动启动防火墙:systemctl disable firewalld.service
- 更换镜像源
- sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
"registry-mirrors": [
//配置阿里云加速器
"https://registry.docker-cn.com",
"https://docker.mirrors.ustc.edu.cn",
"https://hub-mirror.c.163.com",
"https://mirror.baidubce.com",
"https://dockerhub.icu/",
"https://docker.m.daocloud.io"
]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
Linux镜像拉取失败_error pulling image configuration: download failed-CSDN博客
Docker入门安装、镜像与容器下载 —— 基本操作_docker下载教程-CSDN博客