question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot temporarily tag because target image already exists

See original GitHub issue

Sometimes when we have target image already existing in system, and so caused the docker-maven-plugin failed to temporarily tag. After checked, found following code.

 if (!name.hasRegistry() && registry != null) {
            if (hasImage(targetImage)) {
                throw new DockerAccessException(
                    String.format("Cannot temporarily tag %s with %s because target image already exists. " +
                                  "Please remove this and retry.",
                                  name.getFullName(), targetImage));
            }

I guess it’s abnormal to interrupt the docker push with such errors, is it possible to remove the exception or add a parameter to toggle on/off the exception?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:11
  • Comments:20

github_iconTop GitHub Comments

6reactions
rhusscommented, Jun 13, 2018

Sorry for the super late response, not sure why this issue was below my radar.

I agree that we should be more conservative here and I’m going to tackle this for the next release.

4reactions
michaelzecommented, Jan 4, 2019

@rhuss Any update on this? I’m running into the same issue and there have been two releases since your last post as far as I can tell.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Cannot temporarily tag because target image already ...
Cannot temporarily tag because target image already exists.
Read more >
How to tag an image with fabric8-maven-plugin?
Show activity on this post. Ran into the same problem. Adding the tag build fixed it. Cannot explain why, perhaps someone else knows....
Read more >
fabric8io/docker-maven-plugin
always : Pull images always even when they already exist locally. ... which probably can't be fixed because of the way how Maven...
Read more >
Troubleshooting errors with Docker commands when using ...
An error indicating that the image can't be found is most often caused by either the image not existing in the upstream registry...
Read more >
IBM Cloud Container Registry CLI
You can identify the images in the scope by using either the tag or the digest ... you're restoring an image that says...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found