open /etc/docker/certs.d/registry.access.redhat.com/redhat-ca.crt: no such file or directory 解決方案

方法一.  yum安裝python

     yum install *rhsm*nginx

方法二 (我是用這方法解決的)docker

     執行命令:centos

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

             

     ②   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    code

       前兩個命令會生成/etc/rhsm/ca/redhat-uep.pem文件.     blog

       ③    docker pull registry.access.redhat.com/rhel7/pod-infrastructure:latestget


此時kubectl get pods 會顯示running狀態pm2

[root@docker-master1 ~]# kubectl get pods
NAME      READY     STATUS    RESTARTS   AGE
mynginx   1/1       Running   0          13m
相關文章
相關標籤/搜索