Ver código fonte

Merge pull request #29089 from vieux/fix_plugin_tests

[1.12.x] "fix" plugin tests
Victor Vieux 8 anos atrás
pai
commit
0c3e2e1556
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      plugin/distribution/pull.go

+ 2 - 1
plugin/distribution/pull.go

@@ -143,7 +143,8 @@ func Pull(name string, rs registry.Service, metaheader http.Header, authConfig *
 		logrus.Debugf("pull.go: error in json.Unmarshal(): %v", err)
 		return nil, err
 	}
-	if m.Config.MediaType != MediaTypeConfig {
+	if m.Config.MediaType != MediaTypeConfig &&
+		m.Config.MediaType != "application/vnd.docker.plugin.image.v0+json" {
 		return nil, ErrUnsupportedMediaType
 	}