Setup Private Docker Registry Kubernetes
User your own private docker registry for development or private/non-public projects.
- Setup Private Docker Registry Kubernetes Download
- Create Private Docker Registry Kubernetes
- Setup Private Docker Registry Kubernetes Free
Docker Setup
Start registry container:
I need to set up a private registry recently to demonstrate some of the Kubernetes features. Docker-registry helm chart on the lightweight Kubernetes, K3s, serves my purposes nicely. In this guide you will create a private Docker registry on Linode Kubernetes Engine where you can securely store your Docker images. Your Docker images will be stored in a Linode Object Storage bucket. You will use Let's Encrypt and cert-manager to create a TLS certificate for your private registry. To route your registry's traffic your will use the NGINX Ingress Controller and a Linode.
Kubernetes: Use your own private docker registry Posted on May 29, 2019 2 minutes 402 words blinkeye User your own private docker registry for development or private/non-public projects. Aug 31, 2020 Step 4: Creating the Registry Pod. Next, let us create the actual Pod and a corresponding Service to access it. In the yaml file docker-registry-pod.yaml below, the image that we use for our. Setup a private Docker registry with TLS on Kubernetes. This tutorial will show you how to deploy your own registry on Kubernetes for storing Docker images. You will also learn how to setup TLS certificates which will be issued for free from LetsEncrypt.com. Conceptual architecture. You will learn how each part works together by following the.
check container:
and version:
try to login:
Adjust or create a docker config (use proper ip/netmask):
restart docker:
and log in again:
Kubernetes Setup
Reference: Kubernetes: Pull an Image from a Private Registry
Create a docker configuration file similar to the one you have in ~/.docker/config.json
:
Setup Private Docker Registry Kubernetes Download
Now create a kubernetes secret from this docker-config.json
file with:

NOTE: auth is just base64 encoded username:password
, e.g.:
and to decode:
Next, on each Kubernetes Node allow insecure registries:
Then restart the docker daemon:
Docker registry cleanup
Log in to the registry container:
then:
Double check (from outside):
Reason: the docker container with the registry does not have Curl
installed.
Create Private Docker Registry Kubernetes
Docker cleanup
Everything
Remove
Remove all non-running containters.
Next remove unused images:

also see: https://gist.github.com/bastman/5b57ddb3c11942094f8d0a97d461b430
See also
Setup Private Docker Registry Kubernetes Free
User your own private docker registry for development or private/non-public projects.
Docker Setup
Start registry container:
check container:
and version:
try to login:
Adjust or create a docker config (use proper ip/netmask):
restart docker:
and log in again:
Kubernetes Setup
Reference: Kubernetes: Pull an Image from a Private Registry
Create a docker configuration file similar to the one you have in ~/.docker/config.json
:
Now create a kubernetes secret from this docker-config.json
file with:
NOTE: auth is just base64 encoded username:password
, e.g.:
and to decode:
Next, on each Kubernetes Node allow insecure registries:
Then restart the docker daemon:
Docker registry cleanup
Log in to the registry container:
then:
Double check (from outside):
Reason: the docker container with the registry does not have Curl
installed.
Docker cleanup
Everything
Remove

Remove all non-running containters.
Next remove unused images:
also see: https://gist.github.com/bastman/5b57ddb3c11942094f8d0a97d461b430