Gitlab: различия между версиями
Перейти к навигации
Перейти к поиску
FireWolf (обсуждение | вклад) |
FireWolf (обсуждение | вклад) |
||
Строка 20: | Строка 20: | ||
After deleting the 2 files, you can run the GC and it should free some space. | After deleting the 2 files, you can run the GC and it should free some space. | ||
<syntaxhighlight> | |||
registry garbage-collect /var/opt/gitlab/registry/config.yml | registry garbage-collect /var/opt/gitlab/registry/config.yml | ||
</syntaxhighlight> | |||
[[Категория:Работа]] | [[Категория:Работа]] |
Текущая версия на 06:18, 12 апреля 2018
Вычистить docker registry v2
https://gbougeard.github.io/blog.english/2017/05/20/How-to-clean-a-docker-registry-v2.html
Attention: rming files on the storage and running the GC are critical operations : your DR must be in Read-Only mode. No image must be pushed while you’re performing those ops.
There are 2 files to rm to cleanly remove a digest :
<root>/v2/repositories/${name}/_manifests/tags/${tag}/index/sha256/${hash}
<root>/v2/repositories/${name}/_manifests/revisions/sha256/${hash}
# ${name} : image name
# ${tag} : tag name
# ${hash} : digest to delete
After deleting the 2 files, you can run the GC and it should free some space.
registry garbage-collect /var/opt/gitlab/registry/config.yml