-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Error message Unknown host gcr.io #525
Comments
A call to
But it still wants to pull the image and can't reach the server. |
Hmm, okay, that means that there's an issue with how Jib handles the connection through your corporate proxy then. Can you post the stacktrace that you get from running with the |
Sure:
|
Not sure, but I guess we can add proxy support? https://maven.apache.org/guides/mini/guide-proxies.html That is, read the proxy settings Maven is using and set it properly with our connection factory. |
|
@chanseokoh That might be it - do you want to try to take a stab at it? |
Okay, sounds good to make myself familiarize with the project. |
is this relevant? GoogleCloudPlatform/appengine-plugins#457, we want this to work for both maven and gradle. |
UPDATE: seems like this is possible. Note `Proxy-Authorization' in #1304 (comment). Looks like we won't have complete proxy support, as google-http-client has no support for proxy authentication: googleapis/google-http-java-client#190 and |
@fscheel out of curiosity, do you have your corporate proxy settings in |
@fscheel also, can you try the following properties on mvn execution to see if the workaround works? https://docs.oracle.com/javase/7/docs/api/java/net/doc-files/net-properties.html For example, Sometimes it seems possible to use |
@chanseokoh I use the user configuration. The additional properties work and I successfully created the docker image! 🎉 |
@fscheel Glad it worked! |
Description of the issue:
I'm trying to use
jib
in a maven project. However, during building withjib:dockerBuild
, I get the error messageBuild to Docker daemon failed, perhaps you should make sure that the registry you configured exists/is spelled properly: Unknown host gcr.io
. This is usually a sign for a program not using our corporate proxy, but maven is configured to use the proxy and can download the plugin just fine.Expected behavior:
Have the build work when running
mvn jib:dockerBuild
.Steps to reproduce:
Run
mvn jib:dockerBuild
. I assume a corporate proxy is involved in the error.Environment:
jib-maven-plugin
Configuration:Log output:
The text was updated successfully, but these errors were encountered: