Hi, we’re running a private docker registry on Ubuntu, basically followed this setup:
root@dockerhub:/# docker -v
Docker version 27.5.1, build 9f9e405
docker-buildx-plugin/noble,now 0.20.0-1~ubuntu.24.04~noble amd64 [installed,upgradable to: 0.21.0-1~ubuntu.24.04~noble]
docker-ce-cli/noble,now 5:27.5.1-1~ubuntu.24.04~noble amd64 [installed,upgradable to: 5:28.0.0-1~ubuntu.24.04~noble]
docker-ce-rootless-extras/noble,now 5:27.5.1-1~ubuntu.24.04~noble amd64 [installed,upgradable to: 5:28.0.0-1~ubuntu.24.04~noble]
docker-ce/noble,now 5:27.5.1-1~ubuntu.24.04~noble amd64 [installed,upgradable to: 5:28.0.0-1~ubuntu.24.04~noble]
docker-compose-plugin/noble,now 2.32.4-1~ubuntu.24.04~noble amd64 [installed,upgradable to: 2.33.0-1~ubuntu.24.04~noble]
docker-registry/noble-updates,noble-security,now 2.8.2+ds1-1ubuntu0.24.04.2 amd64 [installed]
I’m looking to manually run garbage collection, per docs:
"As of v2.4.0 a garbage collector command is included within the registry binary. "
Garbage collection can be run as follows
bin/registry garbage-collect [--dry-run] /path/to/config.yml
System-wide, I cannot find a binary file that is “registry”:
/etc/docker/registry# find / -name registry
/etc/docker/registry (this is a folder)
/usr/share/vim/registry
/var/lib/docker-registry/docker/registry
/var/lib/ucf/registry
I can see how it gets run when the docker registry is installed under docker:
docker exec registry bin/registry garbage-collect --dry-run /etc/docker/registry/config.yml
But as I’m not running the registry under docker, I’m expecting a binary file here…
I’m missing something simple…