Can't push/pull from local docker registry

7/12/2019

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?

-- ChikChak
docker
docker-registry
kubernetes
ubuntu

1 Answer

7/12/2019

The problem was that I wasn't suppose to add the port - using push local_registry_addr/image_id worked fine.

-- ChikChak
Source: StackOverflow