# Image pulls from https not from http even after adding custom registry in Rancher

**URL:** <https://forums.suse.com/t/image-pulls-from-https-not-from-http-even-after-adding-custom-registry-in-rancher/10149>\
**Category:** Rancher 1.x\
**Created:** [April 24, 2018, 3:40am UTC](https://forums.suse.com/t/image-pulls-from-https-not-from-http-even-after-adding-custom-registry-in-rancher/10149 "2018-04-24T03:40:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranjith](https://avatars.discourse-cdn.com/v4/letter/r/8797f3/32.png) [@ranjith](https://forums.suse.com/u/ranjith)\
**Post date:** [April 24, 2018, 3:40am UTC](https://forums.suse.com/t/image-pulls-from-https-not-from-http-even-after-adding-custom-registry-in-rancher/10149/1 "2018-04-24T03:40:57Z")

</div>

I have added my private registry server in Rancher custom config. When I try to pull image from that registry it goes into error state. Why? I don’t want to add insecure registry in the host.

**Error:** Failed to allocate instance [container:1i3039]: Bad instance [container:1i3039] in state [error]: Error response from daemon: Get https://registry\_ip:port/v1/\_ping: http: server gave HTTP response to HTTPS client

Rancher trying to pull image from https not from http. Why?

What is the need of registry in Rancher if I add insecure registry in Host itself?
