Note: You will almost certainly want to add some storage options: Note: This is correct as of July 2017. The official Docker docs give the wrong port number but are otherwise correct. https://docs.docker.com/registry/deploying/
-
Create a cert with whatever tools you normally use:
(.ve) maxim@space:~/pumpernikel-pristine/tools/ansible$ ./bin/ssl-client-gencert docker.pumpernikel.com
-
Run:
docker run -d
--restart=always
--name registry
-vpwd/certs:/certs
-e REGISTRY_HTTP_ADDR=0.0.0.0:443
-e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/domain.crt
-e REGISTRY_HTTP_TLS_KEY=/certs/domain.key
-p 443:443
registry:2docker stop registry && docker rm -v registry
curl 'https://docker.pumpernikel.com/v2/_catalog'
docker pull ubuntu:16.04 docker tag ubuntu:16.04 docker.pumpernikel.com/pumpernikel/ubuntu docker push docker.pumpernikel.com/pumpernikel/ubuntu