This is a docker-registry backend driver which stores images in a git repository.
docker run -d -p 5000:5000 -e LOGLEVEL=debug --name reg pyotr777/registry
Build registry image with Dockerfile
$ wget https://raw.githubusercontent.com/pyotr777/docker-registry-driver-git/master/Dockerfile
$ docker build --rm -t <image name> .
$ docker run -d -p 5000:5000 -e LOGLEVEL=debug --name reg <image name>
<image name>
format is your name/image name
, for example: peter/registry
.
option name | description |
---|---|
--name | can be anything |
LOGLEVEL | can be debug, info, warn, error or critical |
STORAGE_PATH | Path to git repository where images are stored. Set it with -e STORAGE_PATH=/some/path |
SETTINGS_FLAVOR | Change storage backend driver. Default is "dev" which will use gitdriver. For details of switching drivers see here: http://github.com/docker/docker-registry#configuration-flavors . |