没法拉取镜像,报错

来源:11-3 使用私有镜像中心拉取镜像

慕码人0523443

2022-11-30

Normal Pulling 56s (x2 over 73s) kubelet Pulling image "192.168.56.101:8081/docker-local/kubeblog:1.3"
Warning Failed 56s (x2 over 73s) kubelet Failed to pull image “192.168.56.101:8081/docker-local/kubeblog:1.3”: rpc error: code = Unknown desc = Error response from daemon: Get https://192.168.56.101:8081/v2/: http: server gave HTTP response to HTTPS client

写回答

1回答

慕码人0523443

提问者

2022-11-30

本地docker pull 没有问题

# docker pull 192.168.56.101:8081/docker-local/kubeblog:1.3

1.3: Pulling from docker-local/kubeblog

Digest: sha256:57e319f7a6ed85ef95afac2da423d32f50781299496db92543e45eb1d1449ba8

Status: Image is up to date for 192.168.56.101:8081/docker-local/kubeblog:1.3

192.168.56.101:8081/docker-local/kubeblog:1.3



0
1
慕码人0523443
不知道为什么。把IP地址修改成别名就可以拉取镜像(Secret也修改成别名),就不会去https,什么原因? Normal Pulling 54s kubelet Pulling image "art.local:8081/docker-local/kubeblog:1.3" Normal Pulled 54s kubelet Successfully pulled image "art.local:8081/docker-local/kubeblog:1.3" in 138.14815ms Normal Created 53s kubelet Created container kubeblog Normal Started 53s kubelet Started container kubeblog Normal Scheduled 20s default-scheduler Successfully assigned default/kubeblog-5fdf49599b-gt78c to node1
2022-11-30
共1条回复

Kubernetes 入门到进阶实战,系统性掌握 K8s 生产实践

阿里云最有价值专家亲授,云原生时代必备技能

1501 学习 · 613 问题

查看课程