for-mac icon indicating copy to clipboard operation
for-mac copied to clipboard

Docker Desktop (Preview for M1) is not able to start

Open totherush opened this issue 5 years ago • 32 comments

  • [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

  1. Install docker desktop preview https://docs.docker.com/docker-for-mac/apple-m1/
  2. Start docker desktop

totherush avatar Jan 11 '21 15:01 totherush

Same issue, same macOS version, just to confirm my Preview version is 7.

02648753-3B11-41C2-AEFC-3C3B6D34D0F1/20210111154104

pckilgore avatar Jan 11 '21 15:01 pckilgore

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.

pckilgore avatar Jan 11 '21 17:01 pckilgore

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 .

totherush avatar Jan 12 '21 14:01 totherush

Same issue. Any idea how to fix it?

caroalvarezsilva avatar Jan 14 '21 19:01 caroalvarezsilva

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)

Gsync avatar Jan 15 '21 06:01 Gsync

Same issue 89719EC3-3D18-4EC5-89E9-094A37E94888/20210118122708

OXIDFabian avatar Jan 18 '21 12:01 OXIDFabian

Same issue 323B04EB-8162-4474-ACA7-0B2248FC415B/20210120180256

hcancelik avatar Jan 20 '21 18:01 hcancelik

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.

uberism avatar Jan 20 '21 19:01 uberism

console.log

simondeeley avatar Jan 23 '21 00:01 simondeeley

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)!

rainycow avatar Jan 27 '21 03:01 rainycow

Same issue. I had to turn off the firewall, then it started successfully.

nikosanif avatar Jan 28 '21 12:01 nikosanif

I have Rosetta 2 (first thing ever installed on the mini), turned firewall on and off, no luck

ams0 avatar Jan 28 '21 13:01 ams0

Turning off firewall worked for me.

emma-r-slight avatar Jan 28 '21 21:01 emma-r-slight

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

weibaohui avatar Jan 30 '21 16:01 weibaohui

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.

ams0 avatar Feb 07 '21 10:02 ams0

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.

clairegraham avatar Feb 10 '21 21:02 clairegraham

try this one: https://desktop.docker.com/mac/stable/arm64/60902/Docker.dmg

this works for me

weibaohui avatar Feb 11 '21 01:02 weibaohui

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

clairegraham avatar Feb 11 '21 15:02 clairegraham

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

seffyB avatar Feb 12 '21 19:02 seffyB

Same issue with the firewall for me:

INFO[0106] connecting to tcp+bootstrap+client://gateway.docker.internal:62966/57bfba08db3b2a5e82c6a48dea2276ee66f01e319f17cdf5c5e5c08c98e05c03... 
INFO[0106] cannot set up multiplexer, will retry in 2s: querying route for 8.8.8.8: network is unreachable 

Disabling firewall fixed this.

mikestecker avatar Feb 15 '21 18:02 mikestecker