Delete from registry images for merged branches
Hi, there. I have 400Gb images for my repos, and most of them are coming from already merged branched that was deleted. Is there way to cleanup i?
Designs
- Show closed items
Relates to
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Contributor
@ivan-exness Have you tried the garbage collect command:
- Mark Fletcher added ~343072 ~532786 labels
added ~343072 ~532786 labels
- Author
Tried to run it, but it does not help.
root@git:~# gitlab-ctl registry-garbage-collect ok: down: registry: 0s, normally up Running garbage-collect using configuration from /var/opt/gitlab/registry/config.yml, this might take a while... ok: run: registry: (pid 16232) 1s root@git:~# df -h /var/opt/gitlab/gitlab-rails/shared/registry/docker/registry/ Filesystem Size Used Avail Use% Mounted on /dev/mapper/ubuntu--template--vg-root 587G 561G 748M 100% /
In config file there nex string:
storage: {"filesystem":{"rootdirectory":"/var/opt/gitlab/gitlab-rails/shared/registry"},"cache":{"blobdescriptor":"inmemory"},"delete":{"enabled":true}}
Edited by Ivan Skiridomov - Author
Does Images deleting from registry when branch deleted ?
- Author
How often
registry-garbage-collect
does run ? - Grzegorz Bizon added ~19173 label
added ~19173 label
- Author
Anyone ? I have running out space
/dev/mapper/ubuntu--template--vg-root 783G 682G 69G 91% /
I cant increase HDD forever.... - Eric Eastwood marked this issue as related to #39490 (closed)
marked this issue as related to #39490 (closed)
I'm not sure there is a link between images and branches. You would have to delete them yourself, but we are missing an automatic or progammatical way, see #20176 (closed)
- Alessandro Lai mentioned in issue #29639 (moved)
mentioned in issue #29639 (moved)
- Contributor
Yes. A new feature for this functionality is covered here:
- Mark Fletcher closed
closed
Are there any news on this?