Your own Docker registry with Kubernetes and Rancher

JM Robles
4 min readMay 23, 2020

TL;DR: Deploy a private docker registry in just 5 minutes!

Containers, containers, containers!

Why your own private registry?

The main reason is for privacy.

If your are working with private code, you need to use a private registry. Among the available options we have Docker Hub, Azure Container Registry, GitLab … and your cluster!

Other reason is the flexibility.

I prefer my own registry in my cluster because we use a lot of containers for our DevOps cycle: testing, pipelines, etc. If you use a cheap cloud provider for the storage in the cluster, you have a private registry with endless possibilities.

Prerequisites

  • A Kubernetes cluster managed by Rancher.
    If you haven’t it, use the following post to create one in just 15 minutes.
  • Cert-manager installed in the cluster.
    Not already? No problem, follow this guideline

--

--

JM Robles

AIOps @ Montevive.ai / Backend / Platform engineer #llm #rag #llamaindex #langchain #go #python #kubernetes #terraform #devops