Docker Registry

Docker Registry

Quickstart

$ docker run -d -p 5000:5000 --name registry registry:2
$ docker pull ubuntu
$ docker tag ubuntu $(docker-machine ip):5000/ubuntu
$ docker pull $(docker-machine ip):5000/ubuntu

Storage

You can create persistent storage for your docker registry by mounting an external volume at /var/lib/registry.

$ docker run -d -p 5000:5000 -v <volume>:/var/lib/registry registry:2

Docker Registry UI

This is a nice UI for your docker registry.

$ docker run -d -p 9000:9000 \
-v /var/run/docker.sock:/docker.sock \
builtdock/docker-ui:latest \
-e="/docker.sock"

Resources

Official Docs