Docker Desktop (Preview for M1) is not able to start
- [x] I have tried with the latest version of Docker Desktop (preview for m1)
- [ ] I have tried disabling enabled experimental features
- [x] I have uploaded Diagnostics
- Diagnostics ID: DCDABD27-98E7-4170-899E-CB63059AC5CC/20210111151612
Expected behavior
Docker Desktop Preview (for m1) should start as on intel chips
Actual behavior
Docker Desktop Preview (for m1) is not able to boot.
I also tried to boot it with switched off firewall.
When executing docker ps at this time I get:
~ docker ps
Error response from daemon: dial unix docker.raw.sock: connect: no such file or directory
Information
- macOS Version: 11.1 (20C69)
Diagnostic logs
Docker for Mac: Docker version 20.10.1, build 831ebeae96
Steps to reproduce the behavior
- Install docker desktop preview https://docs.docker.com/docker-for-mac/apple-m1/
- Start docker desktop
Same issue, same macOS version, just to confirm my Preview version is 7.
02648753-3B11-41C2-AEFC-3C3B6D34D0F1/20210111154104
Interesting. I just noticed docker finally finished "starting" (it had been that way through several restarts). The only thing I did recently was run the diagnostic to finally make the report above, and install a new version of macos fuse for another piece of software.
I noticed in the log:
~ tail -f ~/Library/Containers/com.docker.docker/Data/vms/0/console.log ✔ base 15:03:37
[ 2.209467] EXT4-fs (vda1): mounted filesystem with ordered data mode. Opts: (null)
Failed to connect to logger: dial unix /var/run/memlogdq.sock: connect: no such file or directory
Failed to connect to logger: dial unix /var/run/memlogdq.sock: connect: no such file or directory
[ 2.289917] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 2.478348] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Failed to connect to logger: dial unix /var/run/memlogdq.sock: connect: no such file or directory
Failed to connect to logger: dial unix /var/run/memlogdq.sock: connect: no such file or directory
INFO[0002] connecting to tcp+connect://192.168.64.1:1999...
INFO[0033] cannot set up multiplexer, will retry in 2s: dial tcp 192.168.64.1:1999: connect: connection timed out
INFO[0035] connecting to tcp+connect://192.168.64.1:1999...
INFO[0067] cannot set up multiplexer, will retry in 2s: dial tcp 192.168.64.1:1999: connect: connection timed out
INFO[0069] connecting to tcp+connect://192.168.64.1:1999...
But I see this output also with turned off firewall. So this solution didn't help: https://github.com/docker/for-mac/issues/5130#issuecomment-757337509 .
Same issue. Any idea how to fix it?
I get the following fatal error on startup, tried installing the preview 7 a few times without any luck
StartAll failed: cannot start /Applications/Docker.app/Contents/MacOS/com.docker.osxfs: fork/exec /Applications/Docker.app/Contents/MacOS/com.docker.osxfs: bad CPU type in executable
UPDATE: I had to install Rosetta to make it work (softwareupdate --install-rosetta)
Same issue 89719EC3-3D18-4EC5-89E9-094A37E94888/20210118122708
Same issue 323B04EB-8162-4474-ACA7-0B2248FC415B/20210120180256
The solution for me was to install Rosetta.
On a fresh apple silicon machine, I had the same issue. But when I went to download nodejs, it prompted me to also install Rosetta and Docker preview 7 worked for me.
I had the same issue! Wanted to install nodejs as suggested above, realised homebrew hasn't been installed on the new MacBook so I went ahead to install it and Docker preview 7 works now (without actually having nodejs for my case)!
Same issue. I had to turn off the firewall, then it started successfully.
I have Rosetta 2 (first thing ever installed on the mini), turned firewall on and off, no luck
Turning off firewall worked for me.
Same issue 88b91976-711c-4e8b-b204-b7245e648400/20210130164725
in my case there are many logs like: INFO[0004] connecting to tcp+connect://192.168.64.1:1999... INFO[0035] cannot set up multiplexer, will retry in 2s: dial tcp 192.168.64.1:1999: connect: connection timed out INFO[0037] connecting to tcp+connect://192.168.64.1:1999...
so i tried to fix bridge100 ip,good luck!
ifconfig bridge100
i found the bridge100 ip is 192.168.66.1,so the dial will never success.
so i chaged it to 192.168.64.1
sudo ifconfig bridge100 inet 192.168.64.1 netmask 255.255.255.0
sudo ifconfig bridge100 alias 192.168.64.1 netmask 255.255.255.0
finally docker started
I reinstalled my Mini M1 (be mindful, remove it from your iCloud account before reinstalling) and Docker works again. Not a solution, but someone might be as desperate as me and do it anyway.
I had the same issue, despite Docker Preview working fine since the preview came out for the M1 series. I recently enabled the built-in firewall in Mac and that appears to have caused Docker to never start (the app starts, but the daemon does not, so docker ps -a fails. I disabled the firewall and now it starts and works fine.
try this one: https://desktop.docker.com/mac/stable/arm64/60902/Docker.dmg
this works for me
try this one: https://desktop.docker.com/mac/stable/arm64/60902/Docker.dmg
this works for me
I tried it, but it didn't work either, unless I disable the firewall again. Did you make any other system modifications to get it to work? Specifically with the firewall, or with ifconfig?
Similar messaging in console.log (this loops forever):
INFO[0066] connecting to tcp+bootstrap+client://gateway.docker.internal:49474/dceda115b67f81e097fc01935a027fe44971bd978dab3c468be886a5c132bbd0...
INFO[0066] cannot set up multiplexer, will retry in 2s: querying route for 8.8.8.8: network is unreachable
INFO[0068] connecting to tcp+bootstrap+client://gateway.docker.internal:49474/dceda115b67f81e097fc01935a027fe44971bd978dab3c468be886a5c132bbd0...
INFO[0068] cannot set up multiplexer, will retry in 2s: querying route for 8.8.8.8: network is unreachable
It seems like /Library/PrivilegedHelperTools/com.docker.vmnetd needs to be added to the Mac firewall somehow, but it appears you cannot do it from the system preferences firewall GUI, maybe because it's in the PrivilegedHelperTools folder?
I found this command from googling:
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add /Library/PrivilegedHelperTools/com.docker.vmnetd
But it returns with the error:
The file path you specified is invalid
Same issue 7E3F7B0C-047F-4C9C-A4B3-6E885394E3B2/20210212192416
Similar logs to others, which continuously loops
connecting to tcp+bootstrap+client://gateway.docker.internal:49889/10d99b61c03837b7e6d59f6cb8ba3572e86fd31c607d3667b7838badaa4219b3...
cannot set up multiplexer, will retry in 2s: querying route for 8.8.8.8: network is unreachable
Disabling the firewall resolved the issue for me
Same issue with the firewall for me:
[36mINFO[0m[0106] connecting to tcp+bootstrap+client://gateway.docker.internal:62966/57bfba08db3b2a5e82c6a48dea2276ee66f01e319f17cdf5c5e5c08c98e05c03...
[36mINFO[0m[0106] cannot set up multiplexer, will retry in 2s: querying route for 8.8.8.8: network is unreachable
Disabling firewall fixed this.