update media_type
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
parent
c410222e42
commit
970b23db2e
5 changed files with 7 additions and 5 deletions
|
@ -358,7 +358,8 @@ func (p *v2Puller) pullV2Tag(ctx context.Context, ref reference.Named) (tagUpdat
|
|||
}
|
||||
|
||||
if m, ok := manifest.(*schema2.DeserializedManifest); ok {
|
||||
if m.Manifest.Config.MediaType == schema2.MediaTypePluginConfig {
|
||||
if m.Manifest.Config.MediaType == schema2.MediaTypePluginConfig ||
|
||||
m.Manifest.Config.MediaType == "application/vnd.docker.plugin.image.v0+json" { //TODO: remove this v0 before 1.13 GA
|
||||
return false, errMediaTypePlugin
|
||||
}
|
||||
}
|
||||
|
|
|
@ -190,7 +190,7 @@ This section lists each version from latest to oldest. Each listing includes a
|
|||
* `POST /plugins/(plugin name)/set` configure a plugin.
|
||||
* `POST /plugins/(plugin name)/enable` enable a plugin.
|
||||
* `POST /plugins/(plugin name)/disable` disable a plugin.
|
||||
* `POST /plugins/(plugin name)/push` push a pluging.
|
||||
* `POST /plugins/(plugin name)/push` push a plugin.
|
||||
* `POST /plugins/create?name=(plugin name)` create a plugin.
|
||||
* `DELETE /plugins/(plugin name)` delete a plugin.
|
||||
|
||||
|
|
|
@ -153,7 +153,8 @@ func Pull(ref reference.Named, rs registry.Service, metaheader http.Header, auth
|
|||
logrus.Debugf("pull.go: error in json.Unmarshal(): %v", err)
|
||||
return nil, err
|
||||
}
|
||||
if m.Config.MediaType != schema2.MediaTypePluginConfig {
|
||||
if m.Config.MediaType != schema2.MediaTypePluginConfig &&
|
||||
m.Config.MediaType != "application/vnd.docker.plugin.image.v0+json" { //TODO: remove this v0 before 1.13 GA
|
||||
return nil, ErrUnsupportedMediaType
|
||||
}
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ github.com/boltdb/bolt fff57c100f4dea1905678da7e90d92429dff2904
|
|||
github.com/miekg/dns 75e6e86cc601825c5dbcd4e0c209eab180997cd7
|
||||
|
||||
# get graph and distribution packages
|
||||
github.com/docker/distribution fbb70dc3a14ca65cdac3aaf5e5122b03b42f6fbc
|
||||
github.com/docker/distribution c04791f441f98bcf073353d7317db83663cf3ea2
|
||||
github.com/vbatts/tar-split v0.10.1
|
||||
|
||||
# get go-zfs packages
|
||||
|
|
2
vendor/github.com/docker/distribution/manifest/schema2/manifest.go
generated
vendored
2
vendor/github.com/docker/distribution/manifest/schema2/manifest.go
generated
vendored
|
@ -18,7 +18,7 @@ const (
|
|||
MediaTypeConfig = "application/vnd.docker.container.image.v1+json"
|
||||
|
||||
// MediaTypePluginConfig specifies the mediaType for plugin configuration.
|
||||
MediaTypePluginConfig = "application/vnd.docker.plugin.image.v0+json"
|
||||
MediaTypePluginConfig = "application/vnd.docker.plugin.v1+json"
|
||||
|
||||
// MediaTypeLayer is the mediaType used for layers referenced by the
|
||||
// manifest.
|
||||
|
|
Loading…
Add table
Reference in a new issue