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.
2
Answers
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.
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.