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.
- Clone this repository:
git clone https://github.com/uav4geo/diy-docker-registry
cd diy-docker-registry-
Setup a DNS A Record
yourhost.com-->IP -
Edit
distribution/config.yml(replaceyourhost.comwith your DNS). -
Create a htpasswd file by:
docker run --rm --entrypoint htpasswd httpd:2 -Bbn USERNAM_HERE PASSWORD_HERE > auth/htpasswd- Start the registry
./run.shBy default the LetsEncrypt certificate will not auto-renew. You should add a cron job that runs docker restart registry every month.
You can use docker-reg-tool to manage images.