diff --git a/daemon/containerd/image_push.go b/daemon/containerd/image_push.go index 511f1ca5be..77323e35ce 100644 --- a/daemon/containerd/image_push.go +++ b/daemon/containerd/image_push.go @@ -219,14 +219,16 @@ func extractDistributionSources(labels map[string]string) []distributionSource { // if yes, read it as source for k, v := range labels { if reg := strings.TrimPrefix(k, labelDistributionSource); reg != k { - ref, err := reference.ParseNamed(reg + "/" + v) - if err != nil { - continue - } + for _, repo := range strings.Split(v, ",") { + ref, err := reference.ParseNamed(reg + "/" + repo) + if err != nil { + continue + } - sources = append(sources, distributionSource{ - registryRef: ref, - }) + sources = append(sources, distributionSource{ + registryRef: ref, + }) + } } }