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

Mac OS 11.1 on MacBook Air apple silicon m1, always starting

Open pbpoon opened this issue 5 years ago • 18 comments

  • [ ] I have tried with the latest version of my channel (Stable or Edge)
  • [ ] I have uploaded Diagnostics
  • Diagnostics ID:

Expected behavior

Actual behavior

Information

  • macOS Version:

Diagnostic logs

Docker for Mac: version...

Steps to reproduce the behavior

  1. clean install
  2. when open docker && docker desktop is starting;

pbpoon avatar Dec 18 '20 14:12 pbpoon

I have the same issue, stuck at docker desktop is starting. macOS Catalina 10.15.7 Docker version 20.10.0, build 7287ab3 Desktop version 3.0.1

TigerRobocop avatar Dec 18 '20 15:12 TigerRobocop

Same issue here. Env: Version: 0.0.0 (1) Engine: 20.10.0 macOS 11.1 MacBook Air M1

jgresham avatar Dec 18 '20 21:12 jgresham

Same issue here.Env: Client: Cloud integration: 1.0.2 Version: 20.10.1 API version: 1.41 Go version: devel +37a32a1833 Thu Dec 3 21:34:39 2020 +0000 Git commit: 831ebeae96 Built: Wed Dec 16 02:33:22 2020 OS/Arch: darwin/arm64 Context: default Experimental: true

macOS 11.1 MacBook Air M1 8G

when i check the kernel logs, it tells me that:

% tail -f ~/Library/Containers/com.docker.docker/Data/vms/0/console.log
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
[    4.843901] IPVS: ftp: loaded support on port[0] = 21
[    4.886710] 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
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[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...
INFO[0069] cannot set up multiplexer, will retry in 2s: dial tcp 192.168.64.1:1999: connect: connection timed out
INFO[0071] connecting to tcp+connect://192.168.64.1:1999...
INFO[0103] cannot set up multiplexer, will retry in 2s: dial tcp 192.168.64.1:1999: connect: connection timed out
INFO[0105] connecting to tcp+connect://192.168.64.1:1999...

but the bridge network ipaddress is that:

bridge100: flags=8a63<UP,BROADCAST,SMART,RUNNING,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
	options=3<RXCSUM,TXCSUM>
	ether 1a:3e:ef:1d:0d:64
	inet 192.168.65.1 netmask 0xffffff00 broadcast 192.168.65.255
	inet6 fe80::45f:fdb6:21ef:d098%bridge100 prefixlen 64 secured scopeid 0x12
	Configuration:
		id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
		maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
		root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
		ipfilter disabled flags 0x0
	member: en8 flags=803<LEARNING,DISCOVER,PRIVATE>
	        ifmaxaddr 0 port 17 priority 0 path cost 0
	nd6 options=201<PERFORMNUD,DAD>
	media: autoselect
	status: active
% ifconfig | grep 192.168.64.1  
% 

CarlosWan avatar Dec 19 '20 05:12 CarlosWan

same problem but on non-m1 (intel Mac)

macOS Catalina 10.15.7 Docker version 20.10.0 Desktop version 3.0.1

shi-rudo avatar Dec 19 '20 08:12 shi-rudo

Using Docker-AppleSilicon-Preview7.dmg on M1 MabBook Air/ macOS 11.1

"starting" state doesn't comple after some successful use of the docker for mac then sleep or restart of the mac I think.

I learned the path to kernel log file from https://docs.docker.com/docker-for-mac/apple-m1/, and it told me that:

$ tail -f ~/Library/Containers/com.docker.docker/Data/vms/0/console.log
...
INFO[1970-01-01T00:00:04.855728793Z] containerd successfully booted in 0.019166s  
FATA[0000] Cannot parse runtime config: unexpected end of JSON input 

EDIT: I did Troubleshoot -> Reset to factory defaults and the Docker Desktop is running again...

hiroshi avatar Dec 19 '20 12:12 hiroshi

Same here. Docker version 20.10.0, build 7287ab3 macOS 11.1 MacBook Pro (2019)

Troubleshoot -> Clean / Purge data solves a problem for me. Not ideal, but I consider it better than Troubleshoot -> Reset to factory defaults.

AxelGreen avatar Dec 20 '20 11:12 AxelGreen

isn't the underlying problem here that the the docker desktop kubernetes image it needs to run (https://hub.docker.com/r/docker/desktop-kubernetes/tags?page=1&ordering=last_updated) is not yet build for arm64?

Any ETA on when that can be addressed?

dgdosen avatar Dec 20 '20 14:12 dgdosen

Disabling Firewall in System Preferences worked for me.

paultuckey avatar Dec 21 '20 20:12 paultuckey

Duplicate of https://github.com/docker/for-mac/issues/5140 No need to disable firewall completely but just change its mode.

sfuerte avatar Dec 22 '20 17:12 sfuerte

I'm having the same issue and Firewall is never enabled.

Here is the output of tail -f ~/Library/Containers/com.docker.docker/Data/vms/0/console.log

time="1970-01-01T00:00:05.578143669Z" level=info msg="starting signal loop" namespace=services.linuxkit path=/run/containerd/io.containerd.runtime.v2.task/services.linuxkit/acpid pid=727
time="1970-01-01T00:00:05.769336752Z" level=info msg="starting signal loop" namespace=services.linuxkit path=/run/containerd/io.containerd.runtime.v2.task/services.linuxkit/binfmt pid=782
time="1970-01-01T00:00:05.957312586Z" level=info msg="starting signal loop" namespace=services.linuxkit path=/run/containerd/io.containerd.runtime.v2.task/services.linuxkit/dhcpcd pid=835
time="1970-01-01T00:00:06.128180086Z" level=info msg="starting signal loop" namespace=services.linuxkit path=/run/containerd/io.containerd.runtime.v2.task/services.linuxkit/diagnose pid=887
time="1970-01-01T00:00:06.315243544Z" level=info msg="starting signal loop" namespace=services.linuxkit path=/run/containerd/io.containerd.runtime.v2.task/services.linuxkit/docker pid=955
time="1970-01-01T00:00:06.499815753Z" level=info msg="starting signal loop" namespace=services.linuxkit path=/run/containerd/io.containerd.runtime.v2.task/services.linuxkit/kmsg pid=1012
time="1970-01-01T00:00:06.689115211Z" level=info msg="starting signal loop" namespace=services.linuxkit path=/run/containerd/io.containerd.runtime.v2.task/services.linuxkit/sntpc pid=1099
time="1970-01-01T00:00:06.892041294Z" level=info msg="starting signal loop" namespace=services.linuxkit path=/run/containerd/io.containerd.runtime.v2.task/services.linuxkit/socks pid=1154
time="1970-01-01T00:00:07.111422628Z" level=info msg="starting signal loop" namespace=services.linuxkit path=/run/containerd/io.containerd.runtime.v2.task/services.linuxkit/trim-after-delete pid=1203
time="1970-01-01T00:00:07.313823628Z" level=info msg="starting signal loop" namespace=services.linuxkit path=/run/containerd/io.containerd.runtime.v2.task/services.linuxkit/vpnkit-forwarder pid=1261

Not sure why the date is 1970-01-01.

hcancelik avatar Dec 23 '20 12:12 hcancelik

@hcancelik, here is someone else reported a problem related to the wrong time/date and a workaround for it - https://github.com/docker/for-mac/issues/5130

sfuerte avatar Dec 23 '20 15:12 sfuerte


13k@mini gopanel % tail -f ~/Library/Containers/com.docker.docker/Data/vms/0/console.log
INFO[0254] connecting to tcp+connect://192.168.64.1:1999... 
INFO[0254] cannot set up multiplexer, will retry in 2s: dial tcp 192.168.64.1:1999: connect: network is unreachable 
INFO[0256] connecting to tcp+connect://192.168.64.1:1999... 
INFO[0256] cannot set up multiplexer, will retry in 2s: dial tcp 192.168.64.1:1999: connect: network is unreachable 
INFO[0258] connecting to tcp+connect://192.168.64.1:1999... 
INFO[0258] cannot set up multiplexer, will retry in 2s: dial tcp 192.168.64.1:1999: connect: network is unreachable 
INFO[0260] connecting to tcp+connect://192.168.64.1:1999... 
INFO[0260] cannot set up multiplexer, will retry in 2s: dial tcp 192.168.64.1:1999: connect: network is unreachable 
INFO[0262] connecting to tcp+connect://192.168.64.1:1999... 
INFO[0262] cannot set up multiplexer, will retry in 2s: dial tcp 192.168.64.1:1999: connect: network is unreachable 
INFO[0264] connecting to tcp+connect://192.168.64.1:1999... 
INFO[0264] cannot set up multiplexer, will retry in 2s: dial tcp 192.168.64.1:1999: connect: network is unreachable 
^C
13k@mini gopanel % ifconfig | grep  192.168.64.1                                        
        inet 192.168.64.1 netmask 0xffffff00 broadcast 192.168.64.255
13k@mini gopanel % ping 192.168.64.1                                                    
PING 192.168.64.1 (192.168.64.1): 56 data bytes
64 bytes from 192.168.64.1: icmp_seq=0 ttl=64 time=0.133 ms
^C
--- 192.168.64.1 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.133/0.133/0.133/0.000 ms
13k@mini gopanel % 

du5 avatar Dec 26 '20 03:12 du5

13k@mini gopanel % tail -f ~/Library/Containers/com.docker.docker/Data/vms/0/console.log
INFO[0254] connecting to tcp+connect://192.168.64.1:1999... 
INFO[0254] cannot set up multiplexer, will retry in 2s: dial tcp 192.168.64.1:1999: connect: network is unreachable 
INFO[0256] connecting to tcp+connect://192.168.64.1:1999... 
INFO[0256] cannot set up multiplexer, will retry in 2s: dial tcp 192.168.64.1:1999: connect: network is unreachable 
INFO[0258] connecting to tcp+connect://192.168.64.1:1999... 
INFO[0258] cannot set up multiplexer, will retry in 2s: dial tcp 192.168.64.1:1999: connect: network is unreachable 
INFO[0260] connecting to tcp+connect://192.168.64.1:1999... 
INFO[0260] cannot set up multiplexer, will retry in 2s: dial tcp 192.168.64.1:1999: connect: network is unreachable 
INFO[0262] connecting to tcp+connect://192.168.64.1:1999... 
INFO[0262] cannot set up multiplexer, will retry in 2s: dial tcp 192.168.64.1:1999: connect: network is unreachable 
INFO[0264] connecting to tcp+connect://192.168.64.1:1999... 
INFO[0264] cannot set up multiplexer, will retry in 2s: dial tcp 192.168.64.1:1999: connect: network is unreachable 
^C
13k@mini gopanel % ifconfig | grep  192.168.64.1                                        
        inet 192.168.64.1 netmask 0xffffff00 broadcast 192.168.64.255
13k@mini gopanel % ping 192.168.64.1                                                    
PING 192.168.64.1 (192.168.64.1): 56 data bytes
64 bytes from 192.168.64.1: icmp_seq=0 ttl=64 time=0.133 ms
^C
--- 192.168.64.1 ping statistics ---
1 packets transmitted, 1 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.133/0.133/0.133/0.000 ms
13k@mini gopanel % 

我也试过是可以运行,但不能pull任何的images

pbpoon avatar Dec 26 '20 08:12 pbpoon

the problem of IP 192.168.65.1 of the bridge card "seems" to have been solved by modifying the file

/Library/preferences/SystemConfiguration/com.apple.vmnet.plist

by editing the final part of the file:

     <key> Shared_Net_Address </key>
     <string> 192.168.64.1 </string>
     <key> Shared_Net_Mask </key>
     <string> 255.255.255.0 </string>

guglen avatar Jan 01 '21 17:01 guglen

the problem of IP 192.168.65.1 of the bridge card "seems" to have been solved by modifying the file

/Library/preferences/SystemConfiguration/com.apple.vmnet.plist

by editing the final part of the file:

     <key> Shared_Net_Address </key>
     <string> 192.168.64.1 </string>
     <key> Shared_Net_Mask </key>
     <string> 255.255.255.0 </string>

yes! now working for me. thanks

pbpoon avatar Jan 01 '21 23:01 pbpoon

My machine went through a kernel panic after which I was not able to boot up Docker again. The bridge100 interface was completely missing. I fixed the issue by Troubleshoot > Uninstall, installing again from dmg and restarting the machine.

LeZuse avatar Jan 15 '21 16:01 LeZuse

Issues go stale after 90 days of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30 days of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

docker-robott avatar Apr 15 '21 01:04 docker-robott

Closed issues are locked after 30 days of inactivity. This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle locked

docker-robott avatar Jun 14 '21 03:06 docker-robott