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 5372a6a commit 86813cd
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,6 +20,7 @@ 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"
)
Expand Down Expand Up @@ -56,7 +57,7 @@ func (d *dockerImageDestination) Close() error {

func (d *dockerImageDestination) SupportedManifestMIMETypes() []string {
return []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 86813cd

Please sign in to comment.