-
Notifications
You must be signed in to change notification settings - Fork 574
Issue while building docker image #71
Comments
What command are you running and have you set the docker environmental variables like |
Yes, I have set the docker variables like below. DOCKER_HOST=tcp://192.168.59.103:2376 I am running the docker build image command and stuck at this error. mvn clean package docker:build |
@san213 And |
I have the same issue. Plugin settings are:
The Maven output is:
Generated Dockerfile is:
Edit - I think I found the root cause - Docker daemon log says:
So it looks like uppercase SNAPSHOT is causing isues? |
Had the same issue and @MarekCyzio's suggestion fixed it for me (though it's not just 'SNAPSHOT', but any package name with uppercase letters). Thanks. |
Thanks for working this out. Is this something worth fixing? I've just run into the same issue because we build |
(I'll assume this upper case issue is what caused OP's error.) Docker doesn't let you build images whose repository names have upper case letters. This isn't something we can fix in docker-maven-plugin. We could emit a better error message though. Doesn't the java package naming convention say to use only lowercase? |
I'm having a similar issue after a maven clean. From boot2docker logs:
|
I've added some notes to the README in #148 regarding these causes of 500 Internal Server Error to document some of these problems for users in the future. |
Dockerfile is case sensitive. make sure yours is not DockerFile or something similar. |
I had the same error. Turned out my "ENV" command in my DockerFile had spaces in, and needed to be wrapped in double quotes. |
Hi,
Because, i have seen some sites suggested to name like DockerFile, but it did not work for me |
I am stuck at the below error while trying to build the docker image. I was using 0.1.1 maven plugin, but even after 0.2.6 there has been no help. Can anyone please tell how to solve this?
The text was updated successfully, but these errors were encountered: