Comments (6)
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.
@sfitts are correct. Try changing hostUrl in docker closure to 'http://localhost:2376'
from gradle-docker.
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.
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.
I managed to work around this issue by running the following image:
https://registry.hub.docker.com/u/sequenceiq/socat/
from gradle-docker.
@sarbogast thanks for the update. I'll look into it.
from gradle-docker.
Related Issues (20)
- DockerTasks should use registry from DockerPluginExtension HOT 1
- Use the installation directory as the default working directory HOT 1
- Cannot find switchUser in DockerTask HOT 1
- Require docker login when push=true HOT 4
- Release a new version HOT 1
- Exposing UDP port HOT 3
- Provide option to Dockerfile name equivalent
- Unable to use docker registry HOT 2
- is this plugin not in the official gradle plugin repo? HOT 2
- passing project version info from gradle to external Dockerfile HOT 1
- Can you also add base images for openjdk 10 and openjdk 11 HOT 3
- springboot2打包后tar包大小是原始包大小的2倍 HOT 1
- Building Docker Image with Gradle fails with “COPY failed: no source files were specified” HOT 2
- Roadmap HOT 7
- How to pass docker build arguments to Dockerfile through gradle command line HOT 3
- How to update build jars to a gradle task & external Dockerfile dynamically HOT 1
- Slight error in the readme
- EntryPoint HOT 1
- Gradle 7 - Missing Annotation DockerTask HOT 4
- Email : EOF buildDocker failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-docker.