互联网服务

搭建私有仓库后,构建镜像就开始报错了

我在自己本地搭建了一个私有仓库,之后其他所有 镜像都不能构建了,都 报以下错误:One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Disable the repository, so yum won't use it by default. Yum will then
        just ignore the repository until you permanently enable it again or use
        --enablerepo for temporary usage:

            yum-config-manager --disable

     4. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=.skip_if_unavailable=true

Cannot find a valid baseurl for repo: base/7/x86_64



第一次我把私有仓库删了,就没问题了。然后又试了一个私有仓库,又开始报。删了,还报。。。。求救。。。
参与14

11同行回答

cherry4477cherry4477测试工程师yaxin
在这里给各位专家赔罪,刚发现换了没有代理的外网不报这个问题了,谢谢各位专家显示全部
在这里给各位专家赔罪,刚发现换了没有代理的外网不报这个问题了,谢谢各位专家收起
互联网服务 · 2015-06-05
浏览5783
dl528888dl528888系统运维工程师游戏公司
这个是yum的问题,跟docker的registry没关系,df -h看看磁盘是否满了或者查看一下你的yum源是否正常。显示全部
这个是yum的问题,跟docker的registry没关系,df -h看看磁盘是否满了或者查看一下你的yum源是否正常。收起
互联网服务 · 2015-06-04
浏览5812
胶东牛国磊胶东牛国磊系统架构师百度游戏
回复 11# cherry4477    这倒是不客气,求知的人都是受尊敬的. :)显示全部
回复 11# cherry4477


   这倒是不客气,求知的人都是受尊敬的. :)收起
文化教育其它 · 2015-06-05
浏览3067
cherry4477cherry4477测试工程师yaxin
回复 10# 胶东牛国磊     恩恩 谢谢专家  总发些奇怪问题 真是辛苦你们了~~显示全部
回复 10# 胶东牛国磊


    恩恩 谢谢专家  总发些奇怪问题 真是辛苦你们了~~收起
互联网服务 · 2015-06-05
浏览6104
胶东牛国磊胶东牛国磊系统架构师百度游戏
回复 9# cherry4477     这个难免啊, 我在工作中也遇到网络代理造成的奇怪问题, 去掉代理就一切OK了. 吃一堑长一智, 以后就有经验了. 加油显示全部
回复 9# cherry4477


    这个难免啊, 我在工作中也遇到网络代理造成的奇怪问题, 去掉代理就一切OK了. 吃一堑长一智, 以后就有经验了. 加油收起
文化教育其它 · 2015-06-05
浏览5919
cherry4477cherry4477测试工程师yaxin
回复 7# cherry4477    执行构建的时候是基于centos7的基础镜像显示全部
回复 7# cherry4477


   执行构建的时候是基于centos7的基础镜像收起
互联网服务 · 2015-06-05
浏览5767
cherry4477cherry4477测试工程师yaxin
回复 6# 胶东牛国磊 1.创建了一个构建私有仓库的dockerfile2.进入到dockerfile所在目录,执行docker build构建私有仓库3.报问题中描述的错误显示全部
回复 6# 胶东牛国磊


1.创建了一个构建私有仓库的dockerfile
2.进入到dockerfile所在目录,执行docker build构建私有仓库
3.报问题中描述的错误收起
互联网服务 · 2015-06-05
浏览5792
胶东牛国磊胶东牛国磊系统架构师百度游戏
我想可能是你的问题描述的不清楚. 最好是把你的详细操作步骤按 1 2 3 描述出来.至少对于我而言,我没有明白你是在执行什么操作时报出这个错误信息的显示全部
我想可能是你的问题描述的不清楚. 最好是把你的详细操作步骤按 1 2 3 描述出来.
至少对于我而言,我没有明白你是在执行什么操作时报出这个错误信息的收起
文化教育其它 · 2015-06-05
浏览5776
cherry4477cherry4477测试工程师yaxin
回复 2# leonis     您好,这个应该和本地yum没有关系了吧,构建的时候已经进入基础镜像了呀显示全部
回复 2# leonis


    您好,这个应该和本地yum没有关系了吧,构建的时候已经进入基础镜像了呀收起
互联网服务 · 2015-06-05
浏览5775
cherry4477cherry4477测试工程师yaxin
回复 3# dl528888     您好,磁盘没有满,构建的时候是已经进入到容器里面了啊,里面yum源都是基础镜像自带的啊,不应该不正常啊显示全部
回复 3# dl528888


    您好,磁盘没有满,构建的时候是已经进入到容器里面了啊,里面yum源都是基础镜像自带的啊,不应该不正常啊收起
互联网服务 · 2015-06-05
浏览5749

提问者

cherry4477
测试工程师yaxin

问题状态

  • 发布时间:2015-06-03
  • 关注会员:1 人
  • 问题浏览:15085
  • 最近回答:2015-06-05
  • X社区推广