You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Zero byte file (layer) returned after GC when running with InMemory cache #2966
With Docker Registry version v2.6.2-14-ga66a4c3, after deleting a repository and running the GC, the REST endpoints still returned valid responses for manifests within that repository. However, when we tried to fetch layers, the endpoint returned a 0-byte file.
Because the manifest was successfully returned, docker push did not upload new layers, however, when other services (k8s in our case) tried to pull these images they would fail. This left the registry in a corrupt state with no easy path forward to fix it.
To fix this we removed blobdescriptor: inmemory from our configuration file.
I've looked into this to, and it looks like there's no way to force registry into dropping its blobdescriptor cache.
I'd suggest a simple signal is hooked up so that for example SIGHUP drops the inmemory blobdescriptor cache. As far as I've read the code the inMemoryBlobDescriptorCacheProvider has a Clear() function, so it shouldn't be that hard to plumb up.
Activity
glance- commentedon Nov 22, 2019
I've looked into this to, and it looks like there's no way to force registry into dropping its blobdescriptor cache.
I'd suggest a simple signal is hooked up so that for example SIGHUP drops the inmemory blobdescriptor cache. As far as I've read the code the inMemoryBlobDescriptorCacheProvider has a Clear() function, so it shouldn't be that hard to plumb up.
storage: serve filesystem blobs directly from the file
storage: serve filesystem blobs directly from the file
storage: serve filesystem blobs directly from the file
storage: serve filesystem blobs directly from the file
storage: serve filesystem blobs directly from the file