-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Garbage collection cronjob leaves registry in an inconsistent state #104
Comments
WorkaroundDisabling caching on the registry server will also make it behave correctly. This can be achieved by setting
|
0xDEC0DE
pushed a commit
to 0xDEC0DE/docker-registry.helm
that referenced
this issue
May 20, 2023
The garbage-collection cronjob will cause the registry to go into an inconsistent state if the blob cache is not cleared afterward. Since the cronjob has no facility for doing that, disable blob caching entirely when garbage-collection is in use. Fixes: Issue twuni#104
Facing same issue. |
Can confirm, workaround works. |
NextFire
added a commit
to Japan7/nanak8s
that referenced
this issue
Apr 25, 2024
0xDEC0DE
pushed a commit
to 0xDEC0DE/docker-registry.helm
that referenced
this issue
Apr 25, 2024
The garbage-collection cronjob will cause the registry to go into an inconsistent state if the blob cache is not cleared afterward. Since the cronjob has no facility for doing that, disable blob caching entirely when garbage-collection is in use. Fixes: Issue twuni#104
0xDEC0DE
pushed a commit
to 0xDEC0DE/docker-registry.helm
that referenced
this issue
Apr 25, 2024
The garbage-collection cronjob will cause the registry to go into an inconsistent state if the blob cache is not cleared afterward. Since the cronjob has no facility for doing that, disable blob caching entirely when garbage-collection is in use. Fixes: Issue twuni#104
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
kubectl
skopeo
persistence.deleteEnabled = true
andgarbageCollect.enabled = true
Steps to reproduce
Setup
Test
Expected result
Success
Actual behavior
It fails, claiming layers already exist, etc.
Workaround
Restarting the registry after garbage-collection makes it work as expected:
The text was updated successfully, but these errors were encountered: