wiki/info/landscape/docker-registry.md
... ...
@@ -90,3 +90,15 @@ http:
90 90
91 91
The Hudson build slave AWS image (AMI) has a set of valid credentials in the ``hudson`` user's account to
92 92
push to the registry.
93
+
94
+## Garbage-Collecting Unused Content
95
+
96
+To run a garbage collection in the registry, try this:
97
+```
98
+ docker exec -it registry-registry-1 registry garbage-collect /etc/docker/registry/config.yml
99
+```
100
+
101
+If you want to delete an entire repository, e.g., because you pushed images under an incorrect repository tag, try this:
102
+```
103
+ docker exec -it registry-registry-1 rm -rf /var/lib/registry/docker/registry/v2/repositories/{your-repository-name}
104
+```