Web UI for Private Docker Distribution (Registry).
- Browse Registry (Semantic React UI)
- Delete images from Registry
- more coming..
- Registry 2.6+ (should be ok with
> 2.3
but untested) - CLI access to host where Registry is running (run
garbage-collect
command)
Run somewhere on Docker enabled host:
$ docker pull dalee/hitman
$ docker run \
-e MACARON_ENV=production \
-e REGISTRY_URL=https://registry.example.com:5000/ \
dalee/hitman
Put command to your favourite scheduler (cron, ci, etc..)
$ docker exec -it docker.registry \
bin/registry garbage-collect /etc/docker/registry/config.yml
Where docker.registry
is name of container running Docker Registry.
- There is no auth, so, restrict access to UI via frontend (NGINX
deny/allow
for example) - Multiple
tags
could point to singledigest
(you can havelatest
andv1.0.1
tags, but they actually single image, so be careful) - Tag deletion will not free you hard drive space until
garbage-collect
command is issued - Depending on storage driver, you may have to manually delete empty repositories (ui will show you hint)
Software is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.
Setting up developer dependencies:
$ make install
You can also use yarn instead of npm:
$ yarn --pure-lockfile
Run server:
$ go run ./bin/main.go -registry-url=https://registry.example.com:5000/
Full list of commands:
make docker
— build docker imagemake install
— install all development dependenciesmake format-backend
— gofmt sourcesmake test
— test backend and frontend codemake test-backend
— test backend sourcesmake test-frontend
— test frontend sourcesmake coverage-backend ; go tool cover -html=coverage.txt
— display backend coverage
Build UI (required after any jsx/css change):
$ npm run build
Point your browser to http://localhost:4000/