Docker离线安装报错
docker离线安装报错
“Could not resolve host: mirrorlist.centos.org; 未知的错误”
安装过程中出现机器连接远程Repository进行校验的时候报错 可以先禁用yum源
源管理
1. 列出所有源(包括可用的和不可用的)
yum repolist all
源标识 源名称 状态
C7.0.1406-base/x86_64 CentOS-7.0.1406 - Base 禁用
C7.0.1406-centosplus/x86_64 CentOS-7.0.1406 - CentOSPlus 禁用
C7.0.1406-extras/x86_64 CentOS-7.0.1406 - Extras 禁用
C7.4.1708-extras/x86_64 CentOS-7.4.1708 - Extras 禁用
C7.4.1708-fasttrack/x86_64 CentOS-7.4.1708 - CentOSPlus 禁用
C7.4.1708-updates/x86_64 CentOS-7.4.1708 - Updates 禁用
base/7/x86_64 CentOS-7 - Base 启用: 10,070
base-debuginfo/x86_64 CentOS-7 - Debuginfo 禁用
base-source/7 CentOS-7 - Base Sources 禁用
docker-ce-stable-source Docker CE Stable - Sources 禁用
2、查看启用源
yum repolist enabled
源标识 源名称 状态
base/7/x86_64 CentOS-7 - Base 10,070
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,259
extras/7/x86_64 CentOS-7 - Extras 392
percona-release-noarch/7 Percona Original release/noarch YUM repository 55
percona-release-x86_64/7 Percona Original release/x86_64 YUM repository 2,024
updates/7/x86_64 CentOS-7 - Updates 245
zabbix/x86_64 Zabbix Official Repository - x86_64 132
zabbix-non-supported/x86_64 Zabbix Official Repository non-supported - x86_64 4
repolist: 26,181
3. 查看禁用源
yum repolist disabled
源标识 源名称
C7.0.1406-base/x86_64 CentOS-7.0.1406 - Base
C7.0.1406-centosplus/x86_64 CentOS-7.0.1406 - CentOSPlus
C7.0.1406-extras/x86_64 CentOS-7.0.1406 - Extras
C7.0.1406-fasttrack/x86_64 CentOS-7.0.1406 - CentOSPlus
C7.0.1406-updates/x86_64 CentOS-7.0.1406 - Updates
C7.1.1503-base/x86_64 CentOS-7.1.1503 - Base
C7.1.1503-centosplus/x86_64 CentOS-7.1.1503 - CentOSPlus
C7.1.1503-extras/x86_64 CentOS-7.1.1503 - Extras
C7.1.1503-fasttrack/x86_64 CentOS-7.1.1503 - CentOSPlus
C7.1.1503-updates/x86_64 CentOS-7.1.1503 - Updates
C7.2.1511-base/x86_64 CentOS-7.2.1511 - Base
C7.2.1511-centosplus/x86_64 CentOS-7.2.1511 - CentOSPlus
4. 启用或禁用源
yum-config-manager --disable mysql-connectors-community
yum-config-manager --enable mysql57-community-dmr
5.禁用以下yum源
然后重新执行离线安装 至此解决完毕