Transmode / gradle-docker

A Gradle plugin to build Docker images from the build script.
Apache License 2.0
647 stars 142 forks source link

Support certPath, tlsVerify, and apiVersion when using Docker Remote API #123

Open coollog opened 6 years ago

coollog commented 6 years ago

Have the docker task support inputs certPath and tlsVerify. These are useful for using, for example, minikube's Docker daemon as the remote, which would normally have these environment variables set:

DOCKER_TLS_VERIFY=1
DOCKER_HOST=tcp://192.168.39.124:2376
DOCKER_CERT_PATH=/home/me/.minikube/certs
DOCKER_API_VERSION=1.23
docker {
    useApi true
    tlsVerify '1' // <<<<<<<
    hostUrl 'tcp://192.168.39.124:2376'
    certPath '/home/me/.minikube/certs' // <<<<<<<
    apiVersion '1.23' // <<<<<<<
    apiUsername 'user'
    apiPassword 'password'
    apiEmail 'me@mycompany.com'
}
bjornmagnusson commented 6 years ago

Thanks for reporting this. This has been an long time issue, and should definitely be fixed