部署到K8S失败了:
root@master01:~# kubectl get pod -n ec-dashboard NAME READY STATUS RESTARTS AGE ec-dashboard-88cffbfcc-jjbvs 0/1 ImagePullBackOff 0 3m51s ec-dashboard-web-6588ff5467-bmqtb 0/1 ImagePullBackOff 0 3m51s root@master01:~# ^C root@master01:~# kubectl logs ec-dashboard-88cffbfcc-jjbvs -nec-dashboard Error from server (BadRequest): container "ec-dashboard" in pod "ec-dashboard-88cffbfcc-jjbvs" is waiting to start: trying and failing to pull image root@master01:~# kubectl logs ec-dashboard-web-6588ff5467-bmqtb -nec-dashboard Error from server (BadRequest): container "ec-dashboard-web" in pod "ec-dashboard-web-6588ff5467-bmqtb" is waiting to start: trying and failing to pull image root@master01:~# root@master01:~# docker pull edge.imooc.com/imooc_containers/ec-dashboard-web:v1 Error response from daemon: unauthorized: unauthorized to access repository: imooc_containers/ec-dashboard-web, action: pull: unauthorized to access repository: imooc_containers/ec-dashboard-web, action: pull root@master01:~# root@master01:~# docker pull edge.imooc.com/imooc_containers/ec-dashboard@sha256:14aaccf417856ac4c401510a1b157f54f5207836d49bfe44219e685b4e02d337 Error response from daemon: unauthorized: unauthorized to access repository: imooc_containers/ec-dashboard, action: pull: unauthorized to access repository: imooc_containers/ec-dashboard, action: pull
说明:
问题是镜像拉不下来
手动拉也是拉不下来
我有把Harbor中心的证书拷贝到master命令类似:
>scp -r root@175.27.213.25:/etc/docker/certs.d /etc/docker >systemctl restart docker
这是为什么呢?