docker push to container registry leads to retries and EOF error

I keep trying to push an image to my Container Registry and have the following error, over and over and over.

2df70cee25f4: Pushing [==================================================>]  98.97MB
fd6fd1b38aa6: Pushing   5.12kB
eed5e724bb3f: Pushing [==================================================>]  3.584kB
39519b1d4243: Pushing [==================================================>]  673.3kB
d3a2e66169a4: Pushing [==================================================>]    158MB
bda6db3aeddf: Pushing [==================================================>]  1.303MB
1218b2cb2178: Pushing [==================================================>]  4.533MB
35fad31e25bc: Pushing [==================================================>]  31.74kB
162d1528e8f2: Retrying in 5 seconds
f9fdf403761e: Retrying in 7 seconds
1091b2242301: Retrying in 4 seconds
6535dbe050f8: Waiting
478dbb6fa9b9: Waiting
a574f1b5dd09: Waiting
74ff7c20c1be: Waiting
7e77b50d4b08: Waiting
20ad77933d0c: Waiting
7fa9f3915e68: Waiting
8d26f4bbe9d1: Waiting
5cd34c065b53: Waiting
d49465772d36: Waiting
6dabd9bfb6b6: Waiting
86f857e82f5f: Waiting
e81bff2725db: Waiting

It’ll push layers. Then say it will retry. Then eventually it dies at EOF. As far as I know there isn’t an easy way to debug what could be the error.

I made sure to run doctl registry login.

I was able to push the image to Docker Hub without error.

Docker Desktop for macOS v4.0.1

Engine 20.10.8

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Accepted Answer

It looks like it was due to my Netgear router blocking for spam.

Plume mesh routers also can block the connection. Best to check your router logs.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel