Your ads will be inserted here by
Easy Plugin for AdSense.
Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.
Private docker registry using letsencrypt and Authentication.
#Creating letsencrypt:
./letsencrypt-auto certonly -a manual --rsa-key-size 4096 -d www.tikejhya.com -d registry.tikejhya.com --debug
#Creating auth file
docker run --entrypoint htpasswd registry:2 -Bbn testuser testpassword > auth/htpasswd
#If required:
docker stop registry && docker rm -v registry
Your ads will be inserted here by
Easy Plugin for AdSense.
Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.
#Create registry
docker run -d -p 443:5000 --restart=always --name registry \
-v `pwd`/auth:/auth \
-e "REGISTRY_AUTH=htpasswd" \
-e "REGISTRY_AUTH_HTPASSWD_REALM=Registry Realm" \
-e REGISTRY_AUTH_HTPASSWD_PATH=/auth/htpasswd \
-v `pwd`/certs:/certs \
-e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/mydomain_public.crt \
-e REGISTRY_HTTP_TLS_KEY=/certs/mydomain_private.key \
registry:2
#Test login
docker login registry.tikejhya.com
#Pull some image
docker pull php:php-fpm
#Tag image into newly created registry
docker tag registry.tikejhya.com/my-php
#push image to repo
docker push registry.tikejhya.com/my-php
#Lets pull from remote server:
docker login registry.tikejhya.com
docker --config ~/.docker pull registry.tikejhya.com/php-fpm
docker pull registry.tikejhya.com/bmi-php