Reputation: 1616
I'm using a Macbook with M1 apple silicon processor and Docker. It seems that Docker is having issues because of the different architecture of the Mac processor.
Every time I try to run any docker command I get similar errors as the one below.
Example:
docker login ...
Error response from daemon: Get "https://registry-1.docker.io/v2/": unexpected EOF
I've tried to reinstall and re-login multiple times, but it doesn't seem to work.
Any clues?
Upvotes: 3
Views: 1173
Reputation: 9392
This worked for me, it might work for you:
Update Your Operating System: Ensure that your macOS is up to date by installing the latest updates.
Update Docker: Make sure you are using the latest version of Docker.
Configure Docker Settings:
Settings
.General
, select the VirtioFS
option.Use containerd for pulling and storing images
.If you encounter issues when starting containers, follow these steps:
Docker Resource Adjustment:
Settings
.Resources
.Avoid using images with AMD64 alerts: Try to only pull and use images without AMD64 alert, otherwise it will most probably fail to start.
Remember to apply any changes you make in Docker settings by clicking the Apply & restart
button. This ensures that your configurations take effect.
In case you still have issues after applying changes, try restarting your computer.
Upvotes: 2
Reputation: 565
For me the issue was solved by downgrading docker desktop on my corporate M1 Mac as others indicated here: https://github.com/docker/for-mac/issues/6704
Upvotes: 0
Reputation: 1616
The problem for me was the @
at my mac username as we were using emails for login. I had to create a new user without any special characters in the name, then the problem was gone.
Upvotes: 2