summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Goodman <jgoodman@gitlab.com>2019-06-14 15:36:44 -0400
committerJason Goodman <jgoodman@gitlab.com>2019-06-14 15:36:44 -0400
commit859eaab619ae7b22d92d91afcba7c897dbb6fcb4 (patch)
tree6a7ba07e50cefa56a992decfcc5b61a2fbaf8e6d
parent34b8231d49c880fc07f63c0b48f916a4f864e9c5 (diff)
downloadgitlab-ce-859eaab619ae7b22d92d91afcba7c897dbb6fcb4.tar.gz
Note that deleting tags does not delete blobs in container registry api
-rw-r--r--doc/api/container_registry.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/api/container_registry.md b/doc/api/container_registry.md
index 1f17af1f1e9..4cce8060e17 100644
--- a/doc/api/container_registry.md
+++ b/doc/api/container_registry.md
@@ -145,6 +145,9 @@ DELETE /projects/:id/registry/repositories/:repository_id/tags/:tag_name
curl --request DELETE --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/api/v4/projects/5/registry/repositories/2/tags/v10.0.0"
```
+NOTE: **Note:**
+This does not delete blobs. Run garbage collection to remove blobs and free disk space. Either run `registry garbage-collect` (ideally with `-m`) or the pruner `docker-distribution-pruner`.
+
## Delete repository tags in bulk
Delete repository tags in bulk based on given criteria.
@@ -179,6 +182,9 @@ NOTE: **Note:**
Due to a [Docker Distribution deficiency](https://gitlab.com/gitlab-org/gitlab-ce/issues/21405),
it doesn't remove tags whose manifest is shared by multiple tags.
+NOTE: **Note:**
+This does not delete blobs. Run garbage collection to remove blobs and free disk space. Either run `registry garbage-collect` (ideally with `-m`) or the pruner `docker-distribution-pruner`.
+
Examples:
1. Remove tag names that are matching the regex (Git SHA), keep always at least 5,