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

Docker Manifest generation is incorrect for Redeploy Disabled repositories.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.23.0, 3.24.0, 3.25.0, 3.26.0, 3.26.1, 3.28.0
    • Fix Version/s: 3.30.0
    • Component/s: Docker
    • Labels:
    • Sprint:
      NXRM Trinity Sprint 25
    • Notability:
      3

      Description

      When a docker image is pushed into a Repository that has Redeploy Disabled, even if it is a valid new tag, the Manifest is generated as V1 instead of V2 and causes deprecation warnings.

      Reproduce

      Create a new docker image. The following is enough for a Dockerfile:

       

      FROM alpine
      
      RUN echo "Hello World" > hello.txt
      

       

      Build and tag the image:

      docker build -t nexus/hello-test:1 .

      Login as necessary and then push the image:

      docker push nexus/hello-test:1

      No warnings should be displayed and a manifest will be created in Nexus with type:

      application/vnd.docker.distribution.manifest.v2+json

      Tag a new version:

      docker tag nexus/hello-test:1 nexus/hello-test:2

      Push this version:

      docker push nexus/hello-test:2

      The following Warning will be shown:

      [DEPRECATION NOTICE] registry v2 schema1 support will be removed in an upcoming release. Please contact admins of the 192.168.1.121:9001 registry NOW to avoid future disruption.

      The newly generated manifest will incorrectly have a type of:

      application/vnd.docker.distribution.manifest.v1+prettyjws

      This is now subject to deprecation and there is no reason that it should be a V1 manifest.

      If the repository is set to Allow Redeploy, this does not occur and the v2 manifest is generated correctly.

       

        Attachments

        1. Console_output_2.png
          Console_output_2.png
          109 kB
        2. Console_output.png
          Console_output.png
          227 kB
        3. NXRM_docker-hosted.png
          NXRM_docker-hosted.png
          438 kB

          Issue Links

            Activity

              People

              Assignee:
              aornatovskyy Anatoliy Ornatovskyy
              Reporter:
              mkearns Michael Kearns
              CC:
              Andrei Dodz
              Last Updated By:
              Maksym Kalachov Maksym Kalachov
              Team:
              NXRM - Trinity
              Votes:
              3 Vote for this issue
              Watchers:
              20 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title