Разница между страницами «Mdadm» и «Gitlab»
(Различия между страницами)
Перейти к навигации
Перейти к поиску
FireWolf (обсуждение | вклад) |
FireWolf (обсуждение | вклад) |
||
Строка 1: | Строка 1: | ||
[[:Категория:Работа]] | |||
= Вычистить 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 : | |||
<syntaxhighlight> | <syntaxhighlight> | ||
<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 | |||
</syntaxhighlight> | </syntaxhighlight> | ||
After deleting the 2 files, you can run the GC and it should free some space. | |||
<syntaxhighlight> | <syntaxhighlight> | ||
registry garbage-collect /var/opt/gitlab/registry/config.yml | |||
</syntaxhighlight> | </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