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

Unable to push image whenever it shares layers with another image already pushed by another docker client

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.1.0
    • Component/s: Docker
    • Labels:
    • Story Points:
      2
    • Sprint:
      Sprint 79

      Description

      Symptoms

      When I try to push an image having layers used by other images already pushed onto the nexus docker registry (and pushed by another client) I got the following error message:
      "Upload failed, retrying: blob upload invalid: blob upload invalid"

      Step to reproduce

      Machine A: boot2docker (see details below)
      Machine B: centos (see details below)

      1. Machine A: Create a Dockerfile (such as the one in attachment) set version in echo to v0.0
      2. Machine A: build tag and push it to a fresh nexus repository with tag 0.0
      3. Machine A: update dockerfile and set version in echo to 0.1
      4. Machine A: build tag and push it to nexus with tag 0.1
      5. Machine B: get Dockerfile and set version in echo to 1.0
      6. Machine B: build tag and push it to nexus with tag 1.0

      Configuration

      Nexus

      • Nexus OSS 3.0.0-03
      • Nexus running in a docker container.(sonatype/nexus3:3.0.0)
      • running behind nginx (handling https)

      Clients

      2 machines: a centos and a boot2docker hosted in windows 10. Both using the same version of docker

      Docker

      1.12.0, build 8eab29e

      OS

      boot2docker: docker-machine.exe version 0.8.0, build b85aac1
      centos: CentOS Linux release 7.2.1511 (Core)

      Remarks

      I tried with a very simple docker image (such as busybox instead of gocd/gocd-agent) and it seems to work.

        Attachments

        1. Dockerfile
          0.1 kB
        2. journalctl_docker.service.log
          3 kB
        3. nexus.log
          9 kB

          Activity

            People

            Assignee:
            jtom Joe Tom
            Reporter:
            asidis avit sidis
            Last Updated By:
            Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title