Transmode / gradle-docker

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

Unable to use docker registry #144

Open princesaini1996 opened 6 years ago

princesaini1996 commented 6 years ago

docker { useApi true registry 'http://IP:5000' apiEmail 'xyz@gmail.com' baseImage "openjdk:8-jdk-alpine" maintainer "Prince" }

error: java.net.ConnectException: Connection refused (Connection refused) But registry is running on 5000 port.

Thanks,

bjornmagnusson commented 6 years ago

I think the connection refused is actually a response from the Docker API, not the registry. Will need more information to give a more accurate answer, like Gradle version and gradle output with stacktrace.

jimcarreer commented 5 years ago

I have some more information.

I've got a registry setup using a username/password via NGINX. I get the same connection reset error, however, on NGINX I see the following log:

"POST /v1.11/build?t=group/application:1.1.0 HTTP/1.1" 401 195

Does the client properly use basic authentication?