Support v1 signed media type when do the replication

Support v1 signed media type when do the replicatio

Signed-off-by: Wenkai Yin <yinw@vmware.com>
This commit is contained in:
Wenkai Yin 2019-06-26 08:25:54 +08:00
parent 7c86c98687
commit d2a938812f

View File

@ -261,6 +261,7 @@ func (t *transfer) pullManifest(repository, reference string) (
t.logger.Infof("pulling the manifest of image %s:%s ...", repository, reference) t.logger.Infof("pulling the manifest of image %s:%s ...", repository, reference)
manifest, digest, err := t.src.PullManifest(repository, reference, []string{ manifest, digest, err := t.src.PullManifest(repository, reference, []string{
schema1.MediaTypeManifest, schema1.MediaTypeManifest,
schema1.MediaTypeSignedManifest,
schema2.MediaTypeManifest, schema2.MediaTypeManifest,
manifestlist.MediaTypeManifestList, manifestlist.MediaTypeManifestList,
}) })