Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use docker registry #144

Open
princesaini1996 opened this issue Jul 30, 2018 · 2 comments
Open

Unable to use docker registry #144

princesaini1996 opened this issue Jul 30, 2018 · 2 comments

Comments

@princesaini1996
Copy link

princesaini1996 commented Jul 30, 2018

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,

@bjornmagnusson
Copy link
Contributor

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
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants