Материал из Home Wiki
Перейти к: навигация, поиск


Вычистить docker registry v2

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 :

# ${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