Create a VM with port 443 open to the world (for letsencrypt registration), and a registered DNS ($YOURHOST).
In a directory with the following files as described in this gist:
- docker-compose.yml
- auth/htpasswd (generated with
docker run --entrypoint htpasswd registry:2 -Bbn testuser testpassword
)
Run:
docker-compose up -d
docker pull ubuntu && docker tag ubuntu $YOURHOST/ubuntu
docker login $YOURHOST
Username: testuser
Password: testpassword
docker push $YOURHOST/ubuntu
I guess it can't be too hard to do this with self-signed - for testing?