tkestack / tke

Native Kubernetes container management platform supporting multi-tenant and multi-cluster
Other
1.48k stars 335 forks source link

Registry GC delete multiarch image manifest #2032

Open Huimintai opened 2 years ago

Huimintai commented 2 years ago

When I use registry GC for our local image repository.For our registry,we make all the images for multiarch images like this:

/app # ls /storage/docker/registry/v2/repositories/library/ | grep business
tke-business-api
tke-business-api-amd64
tke-business-api-arm64
tke-business-api-arm64-unknown
tke-business-api-arm64-v8

After I use registry GC,it delete the manifest for imagetke-business-controller,however this image manifest shouldn't be deleted because this image is used in our environment. image

Registry version:

./registry -v
./registry github.com/docker/distribution v2.8.1+unknown
Huimintai commented 2 years ago

This is a bug for registry and found the same issue form gihub:https://github.com/distribution/distribution/issues/3178