Welcome to the Linux Foundation Forum!

3.2.17 Failed to pull image

Options

I got "Failed to pull image error" after deploy try1 using local registry

Failed to pull image "10.103.161.170:5000/simpleapp": rpc error: code = Unknown desc = failed to pull and unpack image "10.103.161.170:5000/simpleapp:latest": failed to resolve reference "10.103.161.170:5000/simpleapp:latest": failed to do request: Head "https://10.103.161.170:5000/v2/simpleapp/manifests/latest": http: server gave HTTP response to HTTPS client

It seems that it tries to request the local registry using https

the image has been pushed to the local registry
~/app1# curl 10.103.161.170:5000/v2/_catalog {"repositories":["simpleapp"]}

my config file for containerd:
[plugins."io.containerd.grpc.v1.cri".registry.mirrors]
[plugin."io.containerd.grpc.v1.cri".registry.mirrors."*"]
endpoint = ["http://10.103.161.170:5000"]

cat /etc/containers/registries.conf.d/registry.conf
[[registry]]
location = "10.103.161.170:5000"
insecure = true

Please help to take a look, thanks!

Comments

Categories

Upcoming Training