Skip to content

Get https://xx.xx.xx.xx/v2/: http: server gave HTTP response to HTTPS client | During Docker Push

I am using Gitlab 11.11.0 and gitlab docker in Docker Runner . I have Docker private registry hosted onpremise @ xx.xx.xx.xx:50001 without SSL.

In my CICD i added : ${CI_REGISTRY} = xx.xx.xx.xx:5001

docker build -t ${CI_REGISTRY}/${CI_PROJECT_NAME}:${CI_COMMIT_REF_SLUG} --pull=true . which successfully build my image .

But when i Use to Push Image using docker push ${CI_REGISTRY}/${CI_PROJECT_NAME}:${CI_COMMIT_REF_SLUG} it gives error Get https://xx.xx.xx.xx/v2/: http: server gave HTTP response to HTTPS client .