-
Pull the required images
docker pull joxit/docker-registry-ui:static docker pull registry:2
-
Secrets and Certificates
-
Create self-signed certificates
gen-certs.sh
-
Create htpasswd
-
create secrets
create-secrets.sh
-
-
Deploy registry
kubectl apply -f config/registry.yaml
-
Service for UI on
nodeport 32080
-
Service for registry on
nodeport 32433
-
Deployment of registry and UI
-
-
Service for short DNS entry [optional]
kubectl apply -f config/default-service.yaml
-
Update
hosts
file inC:\Windows\System32\drivers\etc\
. You need adminstrator rights to update the file.#local docker image registry 127.0.0.1 registry.kube-public.svc.cluster.local registry.kube-public registry
-
Trust the certificate
-
Copy the certificate to a Windows directory
cp certs/my-registry.crt /mnt/c/Temp/
-
Open Power Shell as administrator
Import-Certificate -FilePath C:\Temp\my-registry.crt -CertStoreLocation Cert:\LocalMachine\Root
-
-
Checkout your new local registry
-
from browser visit registry UI
-
use
curl
from Power Shell to look at the registry apicurl https://registry:32433/v2/_catalog | fl StatusCode, Content, Headers
-
push an image to the new registry
docker tag registry:2 registry:32433/temp/local-registry:2 docker push registry:32433/temp/local-registry:2
-
checkout the pushed image in registry UI
-