diff --git a/daemon/containerd/image_push.go b/daemon/containerd/image_push.go index c28e992b6f..8d23eae493 100644 --- a/daemon/containerd/image_push.go +++ b/daemon/containerd/image_push.go @@ -182,7 +182,8 @@ func appendDistributionSourceLabel(ctx context.Context, realStore content.Store, return } - if err := containerdimages.Dispatch(ctx, appendSource, nil, target); err != nil { + handler := presentChildrenHandler(realStore, appendSource) + if err := containerdimages.Dispatch(ctx, handler, nil, target); err != nil { // Shouldn't happen, but even if it would fail, then make it only a warning // because it doesn't affect the pushed data. log.G(ctx).WithError(err).Warn("failed to append distribution source labels to pushed content")