New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config for registry garbage collection should already be inside the registry container #2279

danieltan opened this Issue May 19, 2017 · 2 comments


None yet
2 participants

danieltan commented May 19, 2017

From, the way to run a garbage collection is to execute this within the container:

bin/registry garbage-collect [--dry-run] /path/to/config.yml

Where the config.yml has to be of the form:

version: 0.1
    rootdirectory: /registry/data

However, when shipped as a docker container, this root directory is well defined (/var/lib/registry). Is it possible then to add this configuration to the base container so that I dont have to mount this config in or rebuild the container and add the config myself.

In the end, my goal is to be able to just pull the docker registry and create a cron job that will run:
docker exec registry bin/registry garbage-collect /gcconfig/config.yml


This comment has been minimized.

john-mclean commented Jul 24, 2017

The config inside the registry container is located at /etc/docker/registry/config.yml.


This comment has been minimized.

danieltan commented Jul 25, 2017

my bad. Discovered this after some more digging around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment