mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-27 12:46:03 +01:00
Support replication windows images
Skip the foreign layers when do the replication Signed-off-by: Wenkai Yin <yinw@vmware.com>
This commit is contained in:
parent
2fe207b77d
commit
04883d2b0d
@ -225,6 +225,10 @@ func (t *transfer) copyBlobs(blobs []distribution.Descriptor, srcRepo, dstRepo s
|
|||||||
return jobStoppedErr
|
return jobStoppedErr
|
||||||
}
|
}
|
||||||
digest := blob.Digest.String()
|
digest := blob.Digest.String()
|
||||||
|
if blob.MediaType == schema2.MediaTypeForeignLayer {
|
||||||
|
t.logger.Infof("the blob %s is a foreign layer, skip", digest)
|
||||||
|
continue
|
||||||
|
}
|
||||||
t.logger.Infof("copying the blob %s...", digest)
|
t.logger.Infof("copying the blob %s...", digest)
|
||||||
exist, err := t.dst.BlobExist(dstRepo, digest)
|
exist, err := t.dst.BlobExist(dstRepo, digest)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user