Closed lvthillo closed 7 years ago
Restarting makes it possbile to repush images. The GC does not seem to clean up my blobs which are still growing..
Hi @lorenzvth7
This repo belongs to the old and deprecated v1 repo. The new repo is at https://github.com/docker/distribution
And I believe there's already an issue about what you mention as the second issue. https://github.com/docker/distribution/issues/2094
You should restart your registry after doing a GC, and then you should be okay. You also need to put the registry into read-only mode when doing GC - if someone pushes while GC is running, bad things can happen. I'd personally advise you stop the registry, run GC, and then start it.
Edit: If this is no longer relevant, please close the issue :)
I'm using a registry container version 2.4 on Docker 1.12.0 I push an image in my registry. After that I try to find the revision of that image (sha356:xxx) based on its tag to delete the image.
Now I delete it:
It's accepted but when I'm going to check inside my docker volume: I still see:
cd /var/lib/docker/volumes/registry-volume/_data/docker/registry/v2/repositories/myproj/busybox/_manifests/revisions/sha256/1359608115b94599e5641638bac5aef1ddfaa79bb96057ebf41ebc8d33acf8a7/
I'm able to run the GC.:
That seems to work fine: I went from 672k to 12k. But the problem is that the revision is still in my container. It isn't deleted. I'm not able to delete it again (404 not found). I'm also not able to run the GC again.
Second issue is repushing.:
Only 24k used what isn't possbile. Deleting the 'new push' isn't possible too.