Unable to use docker registry
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,
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.
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?