-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Docker 1.4 requires --force
when using existing tag
#759
Comments
👍 I have got error this.
docker version 1.4.1 |
+1 |
just merged pull request from @gregory90. Feel free to download the latest |
is there a reason why you don't use the --force option on all tags? The problem I see is that if you want to use static tags like "latest" the build will fail on the second build, because latest is already there. |
See moby/moby#8511.
When the Docker image is built it's tagged with the first tag (https://github.com/drone/drone/blob/fb254e3f2c675ed65b78551224e3ed1115739f5c/plugin/publish/docker.go#L92), then later all tags are applied (https://github.com/drone/drone/blob/fb254e3f2c675ed65b78551224e3ed1115739f5c/plugin/publish/docker.go#L102).
This should either use
--force
for all tags, or not retag the first one.The text was updated successfully, but these errors were encountered: