Add label with the "containerd.io/distribution.source." prefix when image layer is pushed to the new registry
Author: zhenxuanxinCreated Dec 7, 2023Updated Sep 16, 2026
Labelskind/featurestatus/accepted
What is the problem you're trying to solve
After the image layer is pushed to the new registry, update the metadata of the image layer by add a label with the "containerd.io/distribution.source." prefix. If don't do this, the image layer may be uploaded repeatedly in subsequent push
Describe the solution you'd like
may like this https://github.com/moby/moby/blob/v19.03.15/distribution/push_v2.go#L365
Additional context
No response
Source: containerd/containerd