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)
- Machine A: Create a Dockerfile (such as the one in attachment) set version in echo to v0.0
- Machine A: build tag and push it to a fresh nexus repository with tag 0.0
- Machine A: update dockerfile and set version in echo to 0.1
- Machine A: build tag and push it to nexus with tag 0.1
- Machine B: get Dockerfile and set version in echo to 1.0
- 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.