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
bugreport: if used cache, when delete a repository, should clear the cache, otherwise, can not push this repository again. #3322
Can you provide a way how to reproduce this behavior?
delete a repository,run registry gc,then push again, it will success, because there is a cache,but the data file is not uploaded,so when you pull that repository, will meet "manifests unknown"
when call delete api,clear the cache,can solve this problem.
We'd have to make API calls and auth against a remote registry, which isn't impossible, but it's a significant departure. This solution also wouldn't work for deployments using multiple registries since they'll each have their own cache, and it will only clear the cache of the registry the request happened to get routed to.
This solution is clever, but I'm not sure it's worth the effort to set it up in practice.
Activity
milosgajdos commentedon Apr 20, 2021
Can you provide a way how to reproduce this behavior?
dk-lockdown commentedon Apr 21, 2021
delete a repository,run registry gc,then push again, it will success, because there is a cache,but the data file is not uploaded,so when you pull that repository, will meet "manifests unknown"
milosgajdos commentedon Apr 21, 2021
Does this mean this bug appears only when the GC has run post-delete?
dk-lockdown commentedon Apr 21, 2021
yes,gc remove the data file,the cache not clear
deleteriousEffect commentedon Apr 21, 2021
The garbage collector won't be able to clear the inmemory cache for the registry as that's in a separate process with its own memory region.
dk-lockdown commentedon Apr 22, 2021
when use api delete the image repository file,that problem will reproduce too。
dk-lockdown commentedon Apr 22, 2021
when call delete api,clear the cache,can solve this problem.
deleteriousEffect commentedon Apr 22, 2021
We'd have to make API calls and auth against a remote registry, which isn't impossible, but it's a significant departure. This solution also wouldn't work for deployments using multiple registries since they'll each have their own cache, and it will only clear the cache of the registry the request happened to get routed to.
This solution is clever, but I'm not sure it's worth the effort to set it up in practice.