I have created a cluster of Kubernetes, and installed docker for each node. When I try to pull or push an image to my local registry, using docker push local_registry_addr:port/image_id
, I get the following response: Get local_registry_addr:port/v2: http: server gave HTTP response to HTTPS client
.
This happens although I got the certificate from the registry server, and add it as a certificate on my docker server. If I try to wget local_registry_addr:port
, I get 200 OK
.
How can I fix it? Is there anything I need to configure perhaps?
The problem was that I wasn't suppose to add the port - using push local_registry_addr/image_id
worked fine.