-
Notifications
You must be signed in to change notification settings - Fork 362
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
Connection reset by peer on ubuntu 20.04 #934
Comments
fyi, i've already tried specifying the docker url
but received the same error: |
@mosgjig , Did you ever find a solution to this issue? |
Maybe that NewsClub dependency is not compatible with either the Docker version or something else in the environment. Really not sure. Pop!_OS sounds little exotic. I have not experience with it or if they do something special. |
Can you try again with the latest version of the plugin (v6.6.0)? You might have been affected by #944. |
Sure thing, i'll get you a response early next week. Thank you for the follow up!! |
Still getting the same error, but with suppressed info:
Other info:
|
You may want to open the issue against the Docker Java project. Based on the stack trace, it looks more like an issue on their end. Thanks! |
Closing this issue here. I think it's a Docker Java issue. |
I just ran into this issue and found this. My error was this:
I messed up the docker tag, which was the reason it broke like this. Journactl had the following error for the docker.service: level=error msg="Handler for POST /build returned error: invalid reference format" Which led me to go back and check the tag being produced. Just for future reference if anyone else runs into the same problem. Benjamin is correct that the problem lies with the docker-java client (or docker). |
For anyone who stumbles across this in the future: Check the docker service or unix socket for a timeout setting. See #1209 |
Expected Behavior
buildDockerImage tasks work as expected, building image via docker daemon.
Current Behavior
task execution results in:
I/O exception (java.net.SocketException) caught when processing request to {}->unix://localhost:80: Connection reset by peer
This is at odds with maven builds that work fine going against docker. additionally all docker commands work fine outside of the gradle plugin.
Context
Just updated my linux os to Pop_os 20.04 which is based on ubuntu 20.04. With that update, docker now simply installs via package manager (previous iterations had you jump through hoops)...
Steps to Reproduce (for bugs)
Setup extract:
The above results in:
Your Environment
additional info:
The following tasks seem to communicate fine with daemon:
Resulting in:
The text was updated successfully, but these errors were encountered: