Skip to content

uav4geo/diy-docker-registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DIY Docker Registry

These are instructions and scripts to quickly get up and running your own docker registry, with SSL and basic auth out of the box. I feel like the documentation on this is a bit obscure, so I'm documenting it here because you should not trust Docker Hub to remain online when AWS goes offline.

Steps

  1. Clone this repository:
git clone https://github.com/uav4geo/diy-docker-registry
cd diy-docker-registry
  1. Setup a DNS A Record yourhost.com --> IP

  2. Edit distribution/config.yml (replace yourhost.com with your DNS).

  3. Create a htpasswd file by:

docker run --rm --entrypoint htpasswd httpd:2 -Bbn USERNAM_HERE PASSWORD_HERE > auth/htpasswd
  1. Start the registry
./run.sh

(optional) Add Cron Job

By default the LetsEncrypt certificate will not auto-renew. You should add a cron job that runs docker restart registry every month.

Tips

You can use docker-reg-tool to manage images.

About

Self-hosting a docker registry with LetsEncrypt, local storage and basic authentication

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages