Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-11285

improve support for Docker manifest-v2-2

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Done
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.1.0
    • Fix Version/s: None
    • Component/s: Docker
    • Labels:
      None
    • Sprint:
      Sprint 86

      Description

      https://docs.docker.com/registry/spec/manifest-v2-2/

      There are some new optional fields in this version of the manifest. If nexus encounters these, it does not handle them well.

      Example below shows what happens when Nexus sees the os.features property in the manifest:

      2016-10-27 09:18:43,056+0300 ERROR [qtp1943158415-194] jenkinspublisher org.sonatype.nexus.repository.docker.internal.DockerHostedFacetImpl - Manifest refers to missing layer: sha256:5496abde368a3dd39999745bf998c877ddc6a390a943bc3fd99ffaabf728ed88 for: sonet/pushtest/latest in repository docker-internal
      2016-10-27 09:18:43,057+0300 ERROR [qtp1943158415-194] jenkinspublisher org.sonatype.nexus.repository.docker.internal.DockerHostedFacetImpl - Manifest refers to missing layer: sha256:94b4ce7ac4c7c7d4ed75ac2bd9359a87204ad2d5a909759d8e77953874d8e7c2 for: sonet/pushtest/latest in repository docker-internal
      2016-10-27 09:18:43,060+0300 WARN [qtp1943158415-194] jenkinspublisher org.sonatype.nexus.repository.docker.internal.V2Handlers - Error: PUT /v2/sonet/pushtest/manifests/latest: 400 - org.sonatype.nexus.repository.docker.internal.V2Exception: Invalid Manifest
      2016-10-27 09:26:50,784+0300 WARN [qtp1943158415-244] admin org.sonatype.nexus.repository.docker.internal.V2Handlers - Error: GET /v2/helloworldimage/manifests/latest
      com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "os.features" (class org.sonatype.nexus.repository.docker.internal.V2ManifestConfig), not marked as ignorable (11 known properties: "container_config", "container", "config", "architecture", "os", "created", "docker_version", "author", "rootfs", "metaClass", "history"])
      at [Source: java.io.BufferedInputStream@12af6124; line: 1, column: 850] (through reference chain: org.sonatype.nexus.repository.docker.internal.V2ManifestConfig["os.features"])
      at com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException.from(UnrecognizedPropertyException.java:62) [com.fasterxml.jackson.core.jackson-databind:2.7.1]
      

      And here's another example that occurred using 1.13.0-rc 3 for Mac:

      Unrecognized field "comment" (class org.sonatype.nexus.repository.docker.internal.V2ManifestConfig), not marked as ignorable (11 known properties: "container_config", "container", "config", "architecture", "os", "created", "docker_version", "author", "rootfs", "metaClass", "history"])

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jtom Joe Tom
              Reporter:
              plynch Peter Lynch
              Last Updated By:
              Joe Tom
              Votes:
              3 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title