-
Notifications
You must be signed in to change notification settings - Fork 550
build failed: Host name may not be null #890
Comments
Looking at the stacktrace, I would guess the issue is not so much a proxy server but the value being used for |
Hello mattnworb, thx for your reply. This is already the output of "mvn clean package -e -X". I have set the DOCKER_HOST env to 127.0.0.1:2375, where docker is listening(checked with netstat/telnet). Also set the dockerHost via my pom.xml doesn`t help. |
@mattnworb |
I have also same issue with dockerfile-maven plugin. Docker for mac does not set any DOCKER_HOST env. Any idea about it? |
Any chance you guys are behind a corporate proxy? |
The problem is in:
The proxy url is combined using http.proxyHost and http.proxyPort. https://github.com/jersey/jersey/blob/master/connectors/apache-connector/src/main/java/org/glassfish/jersey/apache/connector/ApacheConnector.java#L261 requires to also add http://. Moreover https.proxyHost and https.proxyPort should be honored as well. |
@drallgood @gokhansari @gr33npr Does #903 fix your issue? |
#890 fix for proxy usage ("Expected authority at index 7" error)
Description
While building a docker-image, which included the dockerfile-maven-plugin > 1.3.1 and an activated proxy in mavens setting.xml, the build will fail with the fhe following message:
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.spotify:dockerfile-maven-plugin:1.3.4:build (default) on project XXXXX: Execution default of goal com.spotify:dockerfile-maven-plugin:1.3.4:build failed: Host name may not be null
If i remove the proxy-part or use an older version of dockerfile-maven-plugin, everything is fine. I`ve read that dockerfile-maven-plugin is using docker-client 8.8.X instead 8.7.X which added proxy-support, so i thought it could be
How to reproduce
Define a pom which includes dockerfile-maven-plugin/docker-client, define "build" as goal and set a proxy in mavens settings.xml
What do you expect
BUILD SUCCESS
What happened instead
BUILD FAILED
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: