Gitlab
Версия от 06:17, 12 апреля 2018; FireWolf (обсуждение | вклад) (Новая страница: «Категория:Работа = Вычистить docker registry v = https://gbougeard.github.io/blog.english/2017/05/20/How-to-clean-a-docker-registr…»)
Вычистить docker registry v
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