docker安装报错Loading mirror speeds from cached hostfile解决方案
在安装docker时,采用命令去安装/清除/加载yum -y install docker/yum cleam all/yum makecache均出现报错:Loading mirror speeds from cached hostfile
·
在安装docker时,采用命令去安装/清除/加载yum -y install docker/yum cleam all/yum makecache均出现报错:
Loading mirror speeds from cached hostfile
There are no enabled repos.
Run “yum repolist all” to see the repos you have.
To enable Red Hat Subscription Management repositories:
subscription-manager repos --enable
To enable custom repositories:
yum-config-manager --enable
原因为centos /etc/yum.repo.s 中没有repo文件
从其他的linux机器cp过去即可,可以采用scp username@servername:/path/filename /local/path快速获取
更多推荐
已为社区贡献2条内容
所有评论(0)