zoukankan      html  css  js  c++  java
  • Back-off pulling image "registry.access.redhat.com/rhel7/pod-infrastructure:latest

    Error syncing pod, skipping: failed to "StartContainer" for "POD" with ImagePullBackOff: "Back-off pulling image "registry.access.redhat.com/rhel7/pod-infrastructure:latest"" 
    [root@master ~]#
    手动下载 
    [root@master ~]# docker pull registry.access.redhat.com/rhel7/pod-infrastructure:latest 
    Trying to pull repository registry.access.redhat.com/rhel7/pod-infrastructure … 
    open /etc/docker/certs.d/registry.access.redhat.com/redhat-ca.crt: no such file or directory 
    [root@master ~]#
    解决方法 
    [root@master ~]# yum install *rhsm* -y         —-安装
    Installed: 
      python-rhsm.x86_64 0:1.19.10-1.el7_4                                       python-rhsm-certificates.x86_64 0:1.19.10-1.el7_4                                     
    Dependency Installed: 
      python-dateutil.noarch 0:1.5-7.el7                                                                                                                                
    Complete! 
    [root@master ~]# 
    [root@master ~]# docker pull registry.access.redhat.com/rhel7/pod-infrastructure:latest 
    Trying to pull repository registry.access.redhat.com/rhel7/pod-infrastructure … 
    latest: Pulling from registry.access.redhat.com/rhel7/pod-infrastructure
    26e5ed6899db: Pulling fs layer 
    66dbe984a319: Pulling fs layer 
    ^C38e7863e08: Pulling fs layer
    等10个小时就好了 


    安装完成后,执行一下docker pull registry.access.redhat.com/rhel7/pod-infrastructure:latest
    如果依然报错,可参考下面的方案:

    yum install -y wget 

    wget http://mirror.centos.org/centos/7/os/x86_64/Packages/python-rhsm-certificates-1.19.10-1.el7_4.x86_64.rpm

    rpm2cpio python-rhsm-certificates-1.19.10-1.el7_4.x86_64.rpm | cpio -iv --to-stdout ./etc/rhsm/ca/redhat-uep.pem | tee /etc/rhsm/ca/redhat-uep.pem
     
    这两个命令会生成/etc/rhsm/ca/redhat-uep.pem文件.
    顺得的话会得到下面的结果。
     
    [root@localhost]# docker pull registry.access.redhat.com/rhel7/pod-infrastructure:latest
    Trying to pull repository registry.access.redhat.com/rhel7/pod-infrastructure ...
    latest: Pulling from registry.access.redhat.com/rhel7/pod-infrastructure
    26e5ed6899db: Pull complete
    66dbe984a319: Pull complete
    9138e7863e08: Pull complete
    Digest: sha256:92d43c37297da3ab187fc2b9e9ebfb243c1110d446c783ae1b989088495db931
    Status: Downloaded newer image for registry.access.redhat.com/rhel7/pod-infrastructure:latest

  • 相关阅读:
    BZOJ 3668: [Noi2014]起床困难综合症【贪心】
    浅谈错排公式的推导及应用
    Python爬虫笔记(一):爬虫基本入门
    机器理解大数据秘密:聚类算法深度剖析
    想了解概率图模型?你要先理解图论的基本定义与形式
    MATLAB命令大全+注释小结
    【批处理学习笔记】第二十九课:ASCII码
    【批处理学习笔记】第二十八课:声音和控制
    【批处理学习笔记】第二十七课:视窗
    【批处理学习笔记】第二十六课:返回值
  • 原文地址:https://www.cnblogs.com/lexiaofei/p/k8s.html
Copyright © 2011-2022 走看看