Skip to content

Commit

Permalink
docker_image_dest: Add OCI manifests to manifestMIMETypes
Browse files Browse the repository at this point in the history
Since OCI support is in progress for the docker registry, if we have
an OCI manifest, we should try uploading it literally to the registry
before falling back to converting it to a v2 manifest.
  • Loading branch information
owtaylor committed Aug 31, 2017
1 parent c70b26e commit 297df8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/docker_image_dest.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ import (
"github.com/docker/distribution/registry/api/v2"
"github.com/docker/distribution/registry/client"
"github.com/opencontainers/go-digest"
imgspecv1 "github.com/opencontainers/image-spec/specs-go/v1"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
)

var manifestMIMETypes = []string{
// TODO(runcom): we'll add OCI as part of another PR here
imgspecv1.MediaTypeImageManifest,
manifest.DockerV2Schema2MediaType,
manifest.DockerV2Schema1SignedMediaType,
manifest.DockerV2Schema1MediaType,
Expand Down

0 comments on commit 297df8b

Please sign in to comment.