Cannot retrieve metalink for repository: epel. Please verify its path and try again
Dockerfile RUN yum install -y epel-release安装时出现:
Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again
The command '/bin/sh -c yum clean all && yum update -y && yum install -y epel-release && yum install -y redis' returned a non-zero code: 1
编辑或创建文件/etc/yum.repos.d/epel.repo,内容如下
[epel]
name=Extra Packages for Enterprise Linux 6 - $basearch
baseurl=http://download.fedoraproject.org/pub/epel/6/$basearch
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearch
再次使用yum命令
yum clean all
yum makecache
yum update
并不是百分之百管用,应该是有些docker镜像找不到适配epel安装包的原因,还在研究中,做一下笔记,待将来补全解决办法。
还没有评论,来说两句吧...