New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.10: keeps pushing same image #18866
Comments
Are you pushing to a v1 registry or v2 registry? I'm not seeing these repeated pushes with either protocol version: v2:
v1:
|
This is interesting... So if I push the same images I was pushing before, it now says layer already exists. What I was doing was pushing a series of images that were all based on the same common image. As you can see below the
|
This looks like the classic cross-repository push issue. Currently, the registry doesn't know which other repositories a client has permission to access, so it only allows layers to be shared within a specific repository (such as The good news is that there's active work underway to seamlessly share layers between different repositories. The first step is this registry-side PR: distribution/distribution#1269. @BrianBland also has some code for the engine that will make use of this to push a layer from a second repository where it already exists. |
This item is already covered by #14018 in the roadmap. Closing this as a duplicate. |
"Don't" end up duplicated on disk perhaps? |
Yes, thanks for the correction. |
Cool. Yeah, we hit this bug regularly, so just want to make sure we're not blowing out our cloud storage bucket with a zillion copies of our debian base image. |
Same here, I pushed my image and then pulled the same image and then when I pushed the same image it started uploading, instead of saying Already exists, please fix this issue. Docker version 1.10.2, build c3959b1 |
@BlackAdmin what version of the registry are you using? This feature was implemented in docker 1.10, but requires registry 2.3.0 (also see distribution/distribution#1501) |
@thaJeztah Sorry, but how to check registry version ? :) |
@BlackAdmin are you running your own private registry, or Docker Hub? Docker Hub does not yet run registry 2.3 (You can try sending an email to support@docker.com to check if there's a date known for 2.3 to be rolled out) |
@thaJeztah Me on Docker Hub, ok got it. |
When running 1.10 I keep pushing the same images over and over again. If I do
docker push
multiple times it doesn't seem to say "Layer already exists" for what I just pushed.The text was updated successfully, but these errors were encountered: