Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker M1 Preview is stuck in "starting" status #5276

Closed
3 tasks done
Rotzke opened this issue Jan 19, 2021 · 13 comments
Closed
3 tasks done

Docker M1 Preview is stuck in "starting" status #5276

Rotzke opened this issue Jan 19, 2021 · 13 comments

Comments

@Rotzke
Copy link

Rotzke commented Jan 19, 2021

  • I have tried with the latest version of Docker Desktop
  • I have tried disabling enabled experimental features
  • I have uploaded Diagnostics
  • Diagnostics ID: D5F031F4-D4F3-400B-A117-F5A2BFA620E4/20210119233759

Expected behavior

Docker is running

Actual behavior

Docker is stuck in "starting" status

Information

  • macOS Version: BigSur 11.1

Diagnostic logs

localhost com.docker.driver.amd64-linux[6112]: still waiting for docker to respond

Steps to reproduce the behavior

  1. Try to enable Kubernetes Cluster on Docker M1 Preview
  2. Try to install minikube
  3. Now Docker could not be started event after full reinstallation of the app
@Rotzke
Copy link
Author

Rotzke commented Jan 20, 2021

I have seen that there are similar issues opened but it was working fine before I tried to enable Kubernetes, hope this could somehow give extra info.

@tylerrasor
Copy link

tylerrasor commented Jan 20, 2021

k8s is known not to work, I had to edit ~/Library/Group\ Containers/group.com.docker/settings.json ("kubernetesEnabled": false, "kubernetesInitialInstallPerformed": false) to get the dashboard to respect that I wanted to back out that change

that said, the perpetual starting state problem happened to me long after I tried to enable k8s

edit: when docker was working, I was using k3d successfully

@stephen-turner stephen-turner added the area/m1 M1 preview builds label Jan 20, 2021
@iamsinghal
Copy link

iamsinghal commented Jan 20, 2021

Having similar issue, K8 is stuck "starting" but docker is running

@Rotzke
Copy link
Author

Rotzke commented Jan 21, 2021

k8s is known not to work, I had to edit ~/Library/Group\ Containers/group.com.docker/settings.json ("kubernetesEnabled": false, "kubernetesInitialInstallPerformed": false) to get the dashboard to respect that I wanted to back out that change

that said, the perpetual starting state problem happened to me long after I tried to enable k8s

edit: when docker was working, I was using k3d successfully

Unfortunately did not help, was trying also to manually remove any traces of Docker and do extremely clean install - same result.

@lee997
Copy link

lee997 commented Jan 21, 2021

Try to close the firewall on mac m1 and then restart the docker.

@Rotzke
Copy link
Author

Rotzke commented Jan 21, 2021

Try to close the firewall on mac m1 and then restart the docker.

It was and is deactivated, also thought that it could have been a problem.

@rajatkb-typito
Copy link

Facing the same issue from yesterday. Tried installing minikube and start. Earlier docker was running fine. It has become a blocker for my workflow. Any advices on this. I checked the logs for ~/Library/Containers/com.docker.docker/Data/log/host/com.docker.driver.amd64-linux.log

time="2021-01-22T20:37:37+05:30" level=info msg="🍀 socket server listening : backend.sock"
time="2021-01-22T20:37:37+05:30" level=info msg="🍀 socket server starting : backend.sock"
time="2021-01-22T20:37:37+05:30" level=info msg="NewApprover: grpcfuse feature enabled, using grpcfuse approver"
time="2021-01-22T20:37:37+05:30" level=info msg="NewSharer: grpcfuse feature enabled"
time="2021-01-22T20:37:37+05:30" level=info msg="proxy >> HEAD /_ping\n"
time="2021-01-22T20:37:37+05:30" level=info msg="dial unix docker.raw.sock: connect: no such file or directory"
time="2021-01-22T20:37:37+05:30" level=info msg="VM has started: /Applications/Docker.app/Contents/Resources/bin/com.docker.virtualization --kernel /Applications/Docker.app/Contents/Resources/linuxkit/kernel --ramdisk /Applications/Docker.app/Contents/Resources/linuxkit/initrd.img --disk /Users/rajatkb/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw --macaddr-filename vms/0/macaddr --cpus 4 --memoryMiB 2048 --console-log vms/0/console.log --console vms/0/console.sock --no-docker-proxy"
time="2021-01-22T20:37:37+05:30" level=info msg="waitForDockerUp: Client: &{scheme:http host:unix://docker.raw.sock proto:unix addr:docker.raw.sock basePath: client:0x1400052a960 version:1.40 customHTTPHeaders:map[] manualOverride:false negotiateVersion:true negotiated:false}"
time="2021-01-22T20:38:07+05:30" level=info msg="still waiting for docker to respond after 30.114816708s"
time="2021-01-22T20:38:38+05:30" level=info msg="still waiting for docker to respond after 1m0.240790833s"
time="2021-01-22T20:39:08+05:30" level=info msg="still waiting for docker to respond after 1m30.335729583s"
time="2021-01-22T20:39:38+05:30" level=info msg="still waiting for docker to respond after 2m0.442630458s"
time="2021-01-22T20:40:08+05:30" level=info msg="still waiting for docker to respond after 2m30.53895s"
time="2021-01-22T20:40:38+05:30" level=info msg="still waiting for docker to respond after 3m0.639822625s"
time="2021-01-22T20:41:08+05:30" level=info msg="still waiting for docker to respond after 3m30.753463917s"
time="2021-01-22T20:41:38+05:30" level=info msg="still waiting for docker to respond after 4m0.853762125s"
time="2021-01-22T20:41:53+05:30" level=info msg="proxy >> HEAD /_ping\n"
time="2021-01-22T20:41:53+05:30" level=info msg="dial unix docker.raw.sock: connect: no such file or directory"
time="2021-01-22T20:41:53+05:30" level=info msg="proxy >> HEAD /_ping\n"
time="2021-01-22T20:41:53+05:30" level=info msg="dial unix docker.raw.sock: connect: no such file or directory"
time="2021-01-22T20:41:53+05:30" level=info msg="proxy >> HEAD /_ping\n"
time="2021-01-22T20:41:53+05:30" level=info msg="dial unix docker.raw.sock: connect: no such file or directory"
time="2021-01-22T20:41:53+05:30" level=info msg="proxy >> HEAD /_ping\n"
time="2021-01-22T20:41:53+05:30" level=info msg="dial unix docker.raw.sock: connect: no such file or directory"
time="2021-01-22T20:41:53+05:30" level=info msg="proxy >> GET /v1.24/info\n"
time="2021-01-22T20:41:53+05:30" level=info msg="dial unix docker.raw.sock: connect: no such file or directory"
time="2021-01-22T20:42:08+05:30" level=info msg="still waiting for docker to respond after 4m30.974766s"
time="2021-01-22T20:42:38+05:30" level=info msg="still waiting for docker to respond after 5m1.087546917s"
time="2021-01-22T20:43:08+05:30" level=info msg="still waiting for docker to respond after 5m31.188838958s"
time="2021-01-22T20:43:39+05:30" level=info msg="still waiting for docker to respond after 6m1.298114208s"
time="2021-01-22T20:44:09+05:30" level=info msg="still waiting for docker to respond after 6m31.399238333s"
time="2021-01-22T20:44:39+05:30" level=info msg="still waiting for docker to respond after 7m1.499790708s"
time="2021-01-22T20:45:09+05:30" level=info msg="still waiting for docker to respond after 7m31.598180958s"
time="2021-01-22T20:45:39+05:30" level=info msg="still waiting for docker to respond after 8m1.696682667s"

@Rotzke
Copy link
Author

Rotzke commented Jan 22, 2021

Facing the same issue from yesterday. Tried installing minikube and start. Earlier docker was running fine. It has become a blocker for my workflow. Any advices on this. I checked the logs for ~/Library/Containers/com.docker.docker/Data/log/host/com.docker.driver.amd64-linux.log

time="2021-01-22T20:37:37+05:30" level=info msg="🍀 socket server listening : backend.sock"
time="2021-01-22T20:37:37+05:30" level=info msg="🍀 socket server starting : backend.sock"
time="2021-01-22T20:37:37+05:30" level=info msg="NewApprover: grpcfuse feature enabled, using grpcfuse approver"
time="2021-01-22T20:37:37+05:30" level=info msg="NewSharer: grpcfuse feature enabled"
time="2021-01-22T20:37:37+05:30" level=info msg="proxy >> HEAD /_ping\n"
time="2021-01-22T20:37:37+05:30" level=info msg="dial unix docker.raw.sock: connect: no such file or directory"
time="2021-01-22T20:37:37+05:30" level=info msg="VM has started: /Applications/Docker.app/Contents/Resources/bin/com.docker.virtualization --kernel /Applications/Docker.app/Contents/Resources/linuxkit/kernel --ramdisk /Applications/Docker.app/Contents/Resources/linuxkit/initrd.img --disk /Users/rajatkb/Library/Containers/com.docker.docker/Data/vms/0/data/Docker.raw --macaddr-filename vms/0/macaddr --cpus 4 --memoryMiB 2048 --console-log vms/0/console.log --console vms/0/console.sock --no-docker-proxy"
time="2021-01-22T20:37:37+05:30" level=info msg="waitForDockerUp: Client: &{scheme:http host:unix://docker.raw.sock proto:unix addr:docker.raw.sock basePath: client:0x1400052a960 version:1.40 customHTTPHeaders:map[] manualOverride:false negotiateVersion:true negotiated:false}"
time="2021-01-22T20:38:07+05:30" level=info msg="still waiting for docker to respond after 30.114816708s"
time="2021-01-22T20:38:38+05:30" level=info msg="still waiting for docker to respond after 1m0.240790833s"
time="2021-01-22T20:39:08+05:30" level=info msg="still waiting for docker to respond after 1m30.335729583s"
time="2021-01-22T20:39:38+05:30" level=info msg="still waiting for docker to respond after 2m0.442630458s"
time="2021-01-22T20:40:08+05:30" level=info msg="still waiting for docker to respond after 2m30.53895s"
time="2021-01-22T20:40:38+05:30" level=info msg="still waiting for docker to respond after 3m0.639822625s"
time="2021-01-22T20:41:08+05:30" level=info msg="still waiting for docker to respond after 3m30.753463917s"
time="2021-01-22T20:41:38+05:30" level=info msg="still waiting for docker to respond after 4m0.853762125s"
time="2021-01-22T20:41:53+05:30" level=info msg="proxy >> HEAD /_ping\n"
time="2021-01-22T20:41:53+05:30" level=info msg="dial unix docker.raw.sock: connect: no such file or directory"
time="2021-01-22T20:41:53+05:30" level=info msg="proxy >> HEAD /_ping\n"
time="2021-01-22T20:41:53+05:30" level=info msg="dial unix docker.raw.sock: connect: no such file or directory"
time="2021-01-22T20:41:53+05:30" level=info msg="proxy >> HEAD /_ping\n"
time="2021-01-22T20:41:53+05:30" level=info msg="dial unix docker.raw.sock: connect: no such file or directory"
time="2021-01-22T20:41:53+05:30" level=info msg="proxy >> HEAD /_ping\n"
time="2021-01-22T20:41:53+05:30" level=info msg="dial unix docker.raw.sock: connect: no such file or directory"
time="2021-01-22T20:41:53+05:30" level=info msg="proxy >> GET /v1.24/info\n"
time="2021-01-22T20:41:53+05:30" level=info msg="dial unix docker.raw.sock: connect: no such file or directory"
time="2021-01-22T20:42:08+05:30" level=info msg="still waiting for docker to respond after 4m30.974766s"
time="2021-01-22T20:42:38+05:30" level=info msg="still waiting for docker to respond after 5m1.087546917s"
time="2021-01-22T20:43:08+05:30" level=info msg="still waiting for docker to respond after 5m31.188838958s"
time="2021-01-22T20:43:39+05:30" level=info msg="still waiting for docker to respond after 6m1.298114208s"
time="2021-01-22T20:44:09+05:30" level=info msg="still waiting for docker to respond after 6m31.399238333s"
time="2021-01-22T20:44:39+05:30" level=info msg="still waiting for docker to respond after 7m1.499790708s"
time="2021-01-22T20:45:09+05:30" level=info msg="still waiting for docker to respond after 7m31.598180958s"
time="2021-01-22T20:45:39+05:30" level=info msg="still waiting for docker to respond after 8m1.696682667s"

Actually I remember installing minikube as well, might be related. My Docker logs also look absolutely similar.

@rajatkb-typito
Copy link

rajatkb-typito commented Jan 22, 2021

If someone can give some clue how to undo the changes done by minikube it will be helpful. I have uninstalled Minikube, which I installed manually following the Kuberenetes official docs. Downloaded the binary and moved it to /local/usr/bin folder

@Rotzke
Copy link
Author

Rotzke commented Jan 22, 2021

If someone can give some clue how to undo the changes done by minikube it will be helpful. I have uninstalled Minikube, which I installed manually following the Kuberenetes official docs. Downloaded the binary and moved it to /local/usr/bin folder

I was trying to delete all resources related to Minikube that I could find - no luck.

@rajatkb-typito
Copy link

rajatkb-typito commented Jan 23, 2021

@Rotzke I think this should help. The Minikube installation attempt must have done something , which may have change the bridge100 settings. similar issue . Changing the file /Library/preferences/SystemConfiguration/com.apple.vmnet.plist , to reflect the bottom entries fixes the issue.

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

@Rotzke Rotzke closed this as completed Jan 23, 2021
@Rotzke
Copy link
Author

Rotzke commented Jan 23, 2021

Fixed with #5130

@docker-robott
Copy link
Collaborator

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 docker locked and limited conversation to collaborators Feb 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants