Giter Club home page Giter Club logo

Comments (6)

sfitts avatar sfitts commented on August 25, 2024

It's been a while since I looked at this, but... I think the most recent versions of boot2docker default to HTTPS for the connection. If that's true then you could try to configure the plug-in to connect over HTTPS (that might work) or failing that configure boot2docker to use HTTP (which I think is possible). Sorry for the vagueness, but hopefully this helps a bit.

from gradle-docker.

bjornmagnusson avatar bjornmagnusson commented on August 25, 2024

@sfitts are correct. Try changing hostUrl in docker closure to 'http://localhost:2376'

from gradle-docker.

sarbogast avatar sarbogast commented on August 25, 2024

I've just tried adding hostUrl 'https://localhost:2375' to the docker closure but I get the same problem:

Execution failed for task ':distDocker'.
> org.apache.http.conn.HttpHostConnectException: Connection to https://localhost:2375 refused

from gradle-docker.

sarbogast avatar sarbogast commented on August 25, 2024

I noticed that I shouldn't use localhost as a host for the API since it's running in a boot2docker VM. So I changed my configuration to the following:

docker {
    useApi true
    hostUrl 'https://192.168.59.103:2376'
}

I got the IP by running 'boot2docker ip'

But then I got the following error:

Execution failed for task ':distDocker'.
> javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

What should I do to make this work?

from gradle-docker.

sarbogast avatar sarbogast commented on August 25, 2024

I managed to work around this issue by running the following image:
https://registry.hub.docker.com/u/sequenceiq/socat/

from gradle-docker.

mattgruter avatar mattgruter commented on August 25, 2024

@sarbogast thanks for the update. I'll look into it.

from gradle-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.