Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Config for registry garbage collection should already be inside the registry container #2279
From https://docs.docker.com/registry/garbage-collection/#how-garbage-collection-works, the way to run a garbage collection is to execute this within the container:
Where the config.yml has to be of the form:
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: