Reputation: 325
When trying to push a big file to Docker Hub (4GB),
docker push name/image:latest
it stops half way after a few hours with the error "use of closed network connection" and the file is not pushed.
write tcp 192.xxx>192.xxx: use of closed network connection
This might be due to an unstable connection. It has 2Mb/s in upload.
How can I ask Docker or Windows to keep pushing even if there is a short disconnection?
Note: the small files are pushed correctly.
Upvotes: 5
Views: 8742
Reputation: 41
This is a network related issue. I'm on xfinity cable and could not upload, except after kicking every computer out of the local network.
My work around is using a smartphone hotspot, it's slow but it works 100% of the time.
Upvotes: 0
Reputation: 106
I fixed this by using a different internet connection.
The issue is likely not related to the speed of the connection. The failing connection reached 38Mb/s (up) on speed test and is never flaky in any way.
Then I switched to smartphone as a hotspot which tested an average of 8Mb/s upload. The hotspot connection succeeded in pushing the image to repository.
Upvotes: 4
Reputation: 325
After many trials and investigations, I've found that there is a kind of time-out with slow connections.
I've changed to a better connection of 10Mb/s and Docker has pushed the large files correctly.
Upvotes: 4