gradle-docker icon indicating copy to clipboard operation
gradle-docker copied to clipboard

Unable to use docker registry

Open princesaini1996 opened this issue 7 years ago • 2 comments

docker { useApi true registry 'http://IP:5000' apiEmail '[email protected]' baseImage "openjdk:8-jdk-alpine" maintainer "Prince" }

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

Thanks,

princesaini1996 avatar Jul 30 '18 08:07 princesaini1996

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.

bjornmagnusson avatar Aug 23 '18 20:08 bjornmagnusson

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?

jimcarreer avatar Nov 21 '18 13:11 jimcarreer