Click here to Skip to main content
16,017,151 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have three servers:

1 master: 192.168.1.131 k8s
1 node: 192.168.1.132 k8s
1 rancher: 192.168.1.133 rancher 2.6

I have created a docker image (private registry docker) on the node used 192.168.1.132:5000/test.
Both master and node pushed and pulled to the image. But used rancher deploy set image 192.168.1.132:5000/test then error:

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

My image used
http not https. But the rancher sends HTTPS.
[This is image problem][1]

https://ibb.co/t2wxbQ8

What I have tried:

I have config in <pre>/etc/docker/daemon.json

{
"insecure-registries" : ["192.168.1.132:5000"]
}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900