Docker push stalls, retries and times out

It’s a nightmare. Each time I try, it goes very slowly, retries a few times and times out. Here is the log:

paul@desktop:~/work/arc/code$ docker push pauljurczak/arc:latest
The push refers to repository []
33ebec15ca0c: Retrying in 1 second 
78d6083dacfd: Retrying in 1 second 
5e750f8ea814: Pushing [=================>                                 ]  96.65MB/269.5MB
90b67d9b54ef: Retrying in 20 seconds 
e48e28e58a61: Retrying in 1 second 
ae2753f3e551: Waiting 
ec3c4788435a: Waiting 
8a70d251b653: Waiting 
dialing no proxy configured: resolving host lookup on read udp> i/o timeout

I’m on Ubuntu 22.04.1, Docker version 20.10.22, build 3a2c30b. Here is more info in case it may be relevant:

paul@desktop:~/work/arc/code$ curl -v
*   Trying
* Connected to ( port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.0 (OUT), TLS header, Certificate Status (22):
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS header, Certificate Status (22):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS header, Finished (20):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.2 (OUT), TLS header, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
*  subject: CN=*
*  start date: Oct 31 00:00:00 2022 GMT
*  expire date: Nov 30 23:59:59 2023 GMT
*  subjectAltName: host "" matched cert's "*"
*  issuer: C=US; O=Amazon; OU=Server CA 1B; CN=Amazon
*  SSL certificate verify ok.
* TLSv1.2 (OUT), TLS header, Supplemental data (23):
> GET / HTTP/1.1
> Host:
> User-Agent: curl/7.81.0
> Accept: */*
* TLSv1.2 (IN), TLS header, Supplemental data (23):
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< date: Thu, 22 Dec 2022 23:20:48 GMT
< content-type: text/html; charset=utf-8
< content-length: 2391
< x-powered-by: Express
< etag: W/"957-mTx6rVQmyElNlaNFUX8QJhs0L6k"
< vary: Accept-Encoding
< server: nginx
< x-frame-options: deny
< x-content-type-options: nosniff
< x-xss-protection: 1; mode=block
< strict-transport-security: max-age=31536000
<!DOCTYPE html>
<html lang="en">
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
<meta name="fragment" content="!" />

<script type="text/javascript">
window.ASSET_PATH = '';
<script type="text/javascript">
window.analyticsQueue = window.analyticsQueue || [];
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
<link rel="stylesheet" href="" />
<div id="app"></div>
window.dockerVars = {"recaptchaSiteKey":"6LfFmz8UAAAAAAfwSofn9g9n2GSf_aplw2zjHtsZ","bugsnagApiKey":"aebb7f3442de072b3209127919cf37c0","environment":"production","appVersion":"2114.0.0","auth0Info":{"appDomain":"","audience":"","clientId":"lve9GGl8JtSUrneQ1EVuC0lbjHdi9nb9"}};
window.recaptchaOptions = { useRecaptchaNet: true };
<script src=""></script>
<script src=""></script>
* Connection #0 to host left intact

I did a bit of research, but couldn’t find a similar problem. Is there a way to for push to upload only one chunk at a time instead of several parallel processes? Perhaps adjusting the timeout would help. My network provides only about 240KiB/s upload speed.

I assume it is Docker Desktop for Windows, am I right? At least that is where people report network issues usually. I have no idea why. I used to think it is some VPN or proxy on the host, but it is not always the case.

I made a mistake installing Docker Desktop on Ubuntu 22.04.1. I removed it already. It was causing a different kind of problems, see: command - "sudo docker push" fails with a seemingly bogus error message - Stack Overflow. These issues still persist after Docker Desktop removal.

Then how do you run Docker now? There are multiple ways to install Docker so it is important to know how exactly you installed it.

I followed the instructions from Install Docker Engine on Ubuntu | Docker Documentation followed by Docker Engine post-installation steps | Docker Documentation to the letter. Everything local and pull works fine. Push doesn’t. BTW, it is not showstopper for me at this time. The recipient of my Docker image prefers file transfer other than DockerHub.