Could not acquire image ID or digest following build #282
Comments
I have the same message on Windows 10 :
Maven version Docker version |
I test with 1.4.9 version, it's works fine. |
I'm facing the same issue on my Win10 workstation whereas it works perfectly on my personal Macbook. any idea ? |
I confirmed, it's works fin on Mac OS with 1.4.10. |
Same as?: #25 |
I am having this problem as well. I am running 1.4.10 on Win10. If i leave my Dockerfile in the project root it works fine. If i relocate it to a subdirectory and specify |
The the docker files are not moved in this step to the new folder structure because there is a bug with the dockerfile-maven plugin on windows (see spotify/dockerfile-maven#282)
…r Windows. There is a bug with the dockerfile-maven plugin on windows. For more information see spotify/dockerfile-maven#282
Maybe your |
Are there any plans to fix this problem? Is there a workaround? |
Same problem for Windows, Mac works perfectly fine. Any fix coming? |
From the readme file:
I don't believe this is going to be fixed. |
I moved the Dockerfile to the same directory with pom.xml and it works |
Sure. But that's not what I want. I want to use the same context directory, but with different Dockerfiles for each build profile. |
We have recently had this issue and it was due to our repository tag containing capital letters. When removing them, the build succeeds. |
I moved Dockerfile to project root directory, and then the Docker build worked. For a further test, I then upper cased the repository tag, which resulted in a different error stating that lower case is required:
The point is that an upper case repository tag did not drive the bug about "Could not acquire image ID or digest following build". I guess we're stuck with placing Dockerfile in the project root directory. |
dockerfile feature work fine, do it like this:
pom.xml like this:
|
see my previous reply |
i am facing the same issue.I have my "DockerFile" in my project root directory,and the message like this.Then i refactor the "DockerFile" to "Dockerfile",and it build succeeds. |
For me, it turned out to be a syntax error in my Dockerfile. |
I have got the same issue with my build failing on Windows. I figured out that it was failing due to the push goal whereas the build goal alone was successful |
I got the same problem when I got two dashes in the artifactId, for instance "cdi-bundle-a", when I change the artifactId to "cdi-bundlea" it works fine. BTW I was assigned the artifactId to the image name:
Hope this helps! |
I saw the same error when |
Probably you have specified a name for your image to be build with a uppercase letter in it. |
Try to specify that < contextdirectory > is the directory where the dockerfile is located |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
finally locate the problem. My configuration:
I've verifed this by debug run mvn build and modify the related logic, and it can successfully build. dockerfile-maven/plugin/src/main/java/com/spotify/plugin/dockerfile/BuildMojo.java Line 176 in 6349652
so maybe I can conclude that dockerfile config cannot be used in such situation. and we have to use maven-resources-plugin to copy all file to some place to get rid of this config. |
unless somebody delete the dockerfile config tranformation logic, and use it as it is. |
I encountered this problem on my Mac with docker desktop. There is a disk image size under preferences->resources->advanced. The capacity of all my local images is already larger than this setting. So, when I clean up all local images, the build succeeds. |
When Dockerfile is not on the root directory of the project, under Windows its relative path is resolved with backward slashes. But Docker-desktop run through WSL (Windows Subsystem Linux) so it does not understand backward slashes. Fix spotify#282
this fixed it for me |
Thanks
Le jeu. 22 juil. 2021 à 14:01, Simen Ulvestad ***@***.***> a
écrit :
… I encountered this problem on my Mac with docker desktop. There is a disk
image size under preferences->resources->advanced. The capacity of all my
local images is already larger than this setting. So, when I clean up all
local images, the build succeeds.
this fixed it for me
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#282 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUTIGD62UAOYQ4ZKQTVCFX3TY73CBANCNFSM4HB4WLOA>
.
|
Did a docker system prune --all after reading this. Fixed the issue for me on Mac as well. Thanks |
Hello all, |
Thanks @ShrenikQuest file rename worked like a charm! |
Is this a BUG REPORT or FEATURE REQUEST?:
Description
[Add feature/bug description here]
How to reproduce
[Add steps on how to reproduce this issue]
What do you expect
[Describe what do you expect to happen]
What happened instead
[Describe the actual results]
Software:
docker version
: [Add the output ofdocker version
here, both client and server]Full backtrace
The text was updated successfully, but these errors were encountered: