# How to add private registry on HTTP - not HTTPS

**URL:** <https://forums.suse.com/t/how-to-add-private-registry-on-http-not-https/7558>\
**Category:** Rancher 1.x\
**Created:** [October 13, 2017, 3:54am UTC](https://forums.suse.com/t/how-to-add-private-registry-on-http-not-https/7558 "2017-10-13T03:54:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kangkan](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/kangkan/32/2928_2.png) [@kangkan](https://forums.suse.com/u/kangkan)\
**Post date:** [October 13, 2017, 3:54am UTC](https://forums.suse.com/t/how-to-add-private-registry-on-http-not-https/7558/1 "2017-10-13T03:54:02Z")

</div>

Hi,

I just started using Rancher to learn and try out. It seems to be a great tool.

I have a Docker Registry coupled with Portus as the source of the images that the internal team develops. I could use the docker compose file to add and launch a stack on Rancher once I added the registry as insecure in the /etc/docker/daemon.json file.

But, if I try to add the registry in Rancher through Infrastructure-\>Registries -\> Add Registry, it fails. Can someone help me do this?

---

<div class="post-metadata">

**Author:** ![superseb](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/superseb/32/2424_2.png) [@superseb](https://forums.suse.com/u/superseb)\
**Post date:** [October 13, 2017, 9:08am UTC](https://forums.suse.com/t/how-to-add-private-registry-on-http-not-https/7558/2 "2017-10-13T09:08:18Z")

</div>

So you have Portus on HTTP (what port are you using?) and no authentication which you want to use in Rancher. What fails exactly? Can you show us errors/screenshots?

---

<div class="post-metadata">

**Author:** ![kangkan](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/kangkan/32/2928_2.png) [@kangkan](https://forums.suse.com/u/kangkan)\
**Post date:** [October 13, 2017, 2:24pm UTC](https://forums.suse.com/t/how-to-add-private-registry-on-http-not-https/7558/3 "2017-10-13T14:24:30Z")

</div>

The registry is not on HTTPS, can be accessed using HTTP only. Port is 5000

In Docker InsecureRegistry stands for registry that doesn’t need SSL/TLS. My registry needs authentication and I am providing the credentials.

BTW, I could resolve it. The UI says to avoid providing the protocol (like “https://”) in the server details. However, I added the “http://” in front of the server details and it got added correctly. Yet to try it out, whether it works or not.
