docker / for-mac

Bug reports for Docker Desktop for Mac
https://www.docker.com/products/docker#/mac
2.43k stars 117 forks source link

Docker for Mac hangs while starting up. Stuck on "Docker Desktop is Starting" #5113

Open rje0929 opened 3 years ago

rje0929 commented 3 years ago

Expected behavior

Docker starts up

Actual behavior

Docker doesn't start and just hangs with the "Docker Desktop is Starting" message.

Information

Diagnostic logs

Docker for Mac: 10.15.7

Steps to reproduce the behavior

  1. Just double click the Docker app to start. It also does it on restarting.
keepitreal commented 3 years ago

I ran into this same issue. Resetting to factory defaults resolved it for me. From the docker menu click Troubleshoot -> Reset to factory defaults. Then you can go back in and reconfigure it to how you'd customized it.

gabor-boros commented 3 years ago

Same here. Factory reset helps, but that's the last thing what I wanted to do.

tudoramariei commented 3 years ago

The same thing has been happening to me but starting with version 3.0.0 and also after the update to 3.0.1 I tried every red button (uninstall, reset to factory, clean/purge) and nothing seems to have worked 😓

Mac Version: 10.15.7 | Diagnostics ID: B842B454-F385-4603-8534-A8ABFAB4A4B2/20201214070142

glitterlip commented 3 years ago

I ran into this same issue. Resetting to factory defaults resolved it for me. From the docker menu click Troubleshoot -> Reset to factory defaults. Then you can go back in and reconfigure it to how you'd customized it.

Then you have to recreate all your containers.

kiziltas commented 3 years ago

Happened to me too after this workaround attempt. 3.0.1, 3.0.0, 2.5.0.1 and 2.5.0.0 all have the same issue. Only downgrading to 2.4.0.0 worked for me.

tudoramariei commented 3 years ago

Seems like it wasn't a Docker issue on my side, but rather the antivirus was blocking/throttling Docker

colceagus commented 3 years ago

@tudoramariei

Seems like it wasn't a Docker issue on my side, but rather the antivirus was blocking/throttling Docker

Same for me. but the corporate firewall and antivirus (McAfee) resets once every x minutes. It also throttles my internet speed and pushes to the internal docker registry.

What did you do/add to the antivirus to fix it?

I was not able to add /var/lib/docker to the scanning exceptions. I've added the containers from Library to the scanning exceptions as per the official documentation . I've added the whole docker app to the firewall allow list for both inbound and outbound, for any IP, any Port.

tudoramariei commented 3 years ago

@colceagus well, it also McAfee on my side and I don't have the slightest clue on what needs changing Talk to your local friendly SysAdmins (since they're the ones who made the changes for me); I don't have access to the configs, just to their results ‾_(ツ)_/‾

What (I think) I can tell is that the Firewall seems to affect the network connection and not the files themselves. I also had a drop in internet speed to a 0.5MB/s from about 10MB/s at a point

tiborvass commented 3 years ago

Hi folks, can someone upload a newer diagnostics ID ? ~I can't find the two mentioned on this issue~ Looks like I couldn't get the docker daemon logs from them, but the diagnostics were successfully uploaded. I have a suspicion on what causes this, but would need to confirm from the daemon logs.

tiborvass commented 3 years ago

@rje0929 I could be wrong but I believe you are hitting #5131 on which I provided a workaround, please let me know if that helped or if you still see your issue.

kodywilson commented 3 years ago

@tudoramariei Thanks for mentioning the McAfee firewall! I was facing the same issues, Docker Desktop would stay in starting forever, and what fixed it for me was opening up the McAfee firewall for the Docker application. I had tried the factory reset, but it didn't help at all. Once I monkeyed with the firewall settings it started working right away...

gpongelli commented 3 years ago

I've found a workaround to get docker 3.2.0 working on Mac Catalina 10.15.7 since the first docker startup.

  1. after downloaded the docker dmg file and copied the Docker.app to Application, do NOT run the Docker.app from Application folder.
  2. Run Docker.app from the mounted dmg window, it'll work
  3. go to preferences -> Resources -> file sharing and REMOVE the folders like /private and /Library . Keep only /Users, /Volumes and /tmp
  4. close running Docker app
  5. now open the Docker.app from Application folder

For me, this workaround solves the issue.

fsutawanir commented 3 years ago

I've found a workaround to get docker 3.2.0 working on Mac Catalina 10.15.7 since the first docker startup.

  1. after downloaded the docker dmg file and copied the Docker.app to Application, do NOT run the Docker.app from Application folder.
  2. Run Docker.app from the mounted dmg window, it'll work
  3. go to preferences -> Resources -> file sharing and REMOVE the folders like /private and /Library . Keep only /Users, /Volumes and /tmp
  4. close running Docker app
  5. now open the Docker.app from Application folder

For me, this workaround solves the issue.

I'm doing this in Mojave 10.4.6.

It's working, thank you very much.

aayushrangwala commented 3 years ago

Re-installing worked for me https://stackoverflow.com/questions/44346109/how-to-easily-install-and-uninstall-docker-on-macos

kahitarich commented 3 years ago

I another user on my computer and while logged in as that use Docker started just fine. That gave me the clue. Removing the .docker folder in my home and restarting is the only step that worked for me.

shannon-slattery commented 3 years ago

How long is the reset to factory defaults supposed to take? mine has been running for 20+ minutes now and no new pop-ups have.... popped up.

LumberSzquatch commented 3 years ago

I'm not sure if what I experienced was exactly what was happening here, but for anyone else stumbling upon this thread via Google search, like I did, the issue for me was that Docker Desktop was never prompting me to accept their new terms of service.

It took me restarting Docker itself a couple of times and even restarting my machine for it to pop up, though even then it wasn't popping up. When it did eventually show up and after accepting it, it started successfully and showed me all my containers. I have no idea what I did to make it finally show itself, but when it did, it started working as expected.

So I guess double check that somehow before you commit to factor resetting or reinstalling and potentially losing your containers.

KlausVii commented 3 years ago

I'm not sure if what I experienced was exactly what was happening here, but for anyone else stumbling upon this thread via Google search, like I did, the issue for me was that Docker Desktop was never prompting me to accept their new terms of service.

It took me restarting Docker itself a couple of times and even restarting my machine for it to pop up, though even then it wasn't popping up. When it did eventually show up and after accepting it, it started successfully and showed me all my containers. I have no idea what I did to make it finally show itself, but when it did, it started working as expected.

So I guess double check that somehow before you commit to factor resetting or reinstalling and potentially losing your containers.

This was the issue for me this morning, how silly an issue.

slifty commented 3 years ago

Just came to say that this whole situation is MIND BLOWINGLY UNACCEPTABLE.

Between the ridiculous new TOS and the broken functionality, I'm so disappointed in docker for mac and the way it treats its users.

Hermanverschooten commented 3 years ago

My issue is that I cannot have docker auto-starting on log in. When I reboot my iMac, i get a popup, that I cannot close, telling me docker failed to start. Eventually CleanMyMac tells me there is a non-responding app 'docker', if I then close it, and restart it, it works fine. Happens every reboot.

Docker desktop: 4.1.1 (69879) MacOS BigSur 11.6

0x000bff commented 2 years ago

This is the second time in the past month or so I've had Docker break while updating and need to reinstall. In both instances:

Docker Desktop 4.1.1 MacOS 11.4

I don't remember what version Docker Desktop was for the first incident.

Bojne commented 2 years ago

I also had this issue due to low memory in my machine. Clean extra files then docker is all-set.

atakemura commented 2 years ago

I had this issue after an update, but it resolved itself by: Quit Docker Desktop, Manually Kill com.docker.hyperkit (Force Quit), then restarting Docker Desktop. MacOS 11.6, Docker Desktop 4.2.0.

acatxnamedvirtue commented 2 years ago

Docker started rapidly flipping between Starting and Stopping after updating to Docker Desktop (Mac) 4.2.0 (70708). The steps listed above by @atakemura fixed it for me. Thank you @atakemura !!

anatawa12 commented 2 years ago

With 4.3.0 (71786), This happens. . On the console,VM failed with Internal Virtualization error. The virtual machine failed to start. error by com.docker.virtualization exists but it looks like it's ignored.

orenpinei commented 2 years ago

Rebooting may MAC solved the issue

nomadme commented 2 years ago

Docker hangs on "Starting..." "Stopping..." after updating resources on the docker desktop.

OS: Mac Monterey, 12.1, M1 Pro chip Docker Desktop 4.3.2 (72729)

No solution works until RESET TO FACTORY.

almokhtarbr commented 2 years ago

@nomadme same issue same config

Docker hangs on "Starting..." "Stopping..." after updating resources on the docker desktop.

OS: Mac Monterey, 12.1, M1 Pro chip Docker Desktop 4.3.2 (72729)

noc2spam commented 2 years ago

Not working for me on Mac Monterey as well (M1 chip). Same issue, it keeps starting. Cleaning/Purging/Resetting has no effect.

igorMIA commented 2 years ago

Same issue after updating to the latest version. Mac OS 12.1(intel) image

jansenv commented 2 years ago

I had something similar happen to me in Docker Desktop (Windows) as well, until I reinstalled different versions (4.3.2 worked) and got the prompt for the new TOS. Infuriating.

Abhyudhey commented 2 years ago

I tried few solutions given in the comments above but found no luck. The solution given here worked for me: https://stackoverflow.com/a/44346110/5118708

Details:

Operating System: MacOs Big Sur 11.6 (intel)

Step 1: Quit docker Step 2: Clean everything including images, containers etc. using: (plz take backup if necessary)

sudo rm -f /usr/local/bin/docker
sudo rm -f /usr/local/bin/docker-machine
sudo rm -f /usr/local/bin/docker-compose
sudo rm -f /usr/local/bin/docker-credential-osxkeychain
sudo rm -Rf ~/.docker
sudo rm -Rf $HOME/Library/Containers/com.docker.docker  # here we delete stored images, If you dont want to delete SKIP THIS STEP

Step 3: Install docker via command line using brew install:

brew install --cask docker  (correct command, the one given on SO didn't work for me.)

Step 4: Open Docker. After this my docker was up and running!

Screenshot 2022-01-23 at 9 01 56 PM

Hope this helps! 🤞

davidsword commented 2 years ago

getting same issue after an update, stuck on starting on 4.4.2 on Monterey. In Activity monitor I searched 'docker' and force quit all processes, then opening Docker Desktop it finally started up normally again, no hanging.

kevincerro commented 2 years ago

I had this issue after an update, but it resolved itself by: Quit Docker Desktop, Manually Kill com.docker.hyperkit (Force Quit), then restarting Docker Desktop. MacOS 11.6, Docker Desktop 4.2.0.

This solved my issue

Panayot9 commented 2 years ago

I tried few solutions given in the comments above but found no luck. The solution given here worked for me: https://stackoverflow.com/a/44346110/5118708

Details:

Operating System: MacOs Big Sur 11.6 (intel)

Step 1: Quit docker Step 2: Clean everything including images, containers etc. using: (plz take backup if necessary)

sudo rm -f /usr/local/bin/docker
sudo rm -f /usr/local/bin/docker-machine
sudo rm -f /usr/local/bin/docker-compose
sudo rm -f /usr/local/bin/docker-credential-osxkeychain
sudo rm -Rf ~/.docker
sudo rm -Rf $HOME/Library/Containers/com.docker.docker  # here we delete stored images, If you dont want to delete SKIP THIS STEP

Step 3: Install docker via command line using brew install:

brew install --cask docker  (correct command, the one given on SO didn't work for me.)

Step 4: Open Docker. After this my docker was up and running! Screenshot 2022-01-23 at 9 01 56 PM

Hope this helps! 🤞

I've followed this steps and the Docker works correctly after I've started it. Note on step 3 I've got error but non the less it works. :)

pavanbelagatti commented 2 years ago

Same error and it is so frustrating. I am new to Docker and such issues really take some much time and energy. Factory reset, clean purge has no effect like someone said above. I am stuck at this the whole day.

samatix commented 2 years ago

Same error here as well. This is the first time that I will say something negative on Github and it's not directed to any open source contributor to Docker.

Docker is the only project that I've dealt with that has the worst customer experience, an incoherent pricing that changes every two weeks, and technical issues that require reinstalling the OS on every single device on earth to solve

tapter-mwm commented 2 years ago

I tried few solutions given in the comments above but found no luck. The solution given here worked for me: https://stackoverflow.com/a/44346110/5118708

Details:

Operating System: MacOs Big Sur 11.6 (intel)

Step 1: Quit docker Step 2: Clean everything including images, containers etc. using: (plz take backup if necessary)

sudo rm -f /usr/local/bin/docker
sudo rm -f /usr/local/bin/docker-machine
sudo rm -f /usr/local/bin/docker-compose
sudo rm -f /usr/local/bin/docker-credential-osxkeychain
sudo rm -Rf ~/.docker
sudo rm -Rf $HOME/Library/Containers/com.docker.docker  # here we delete stored images, If you dont want to delete SKIP THIS STEP

Step 3: Install docker via command line using brew install:

brew install --cask docker  (correct command, the one given on SO didn't work for me.)

Step 4: Open Docker. After this my docker was up and running! Screenshot 2022-01-23 at 9 01 56 PM

Hope this helps! 🤞

Had the same issue here on macOS 12.1 Intel Chip and this worked for me !

Thanks been stuck for a while on this issue 😓 👍

nickopris commented 2 years ago

Just updated to Monterey and Docker Desktop 4.6.1 on Mac. 'Docker Desktop is starting...' forever. I rebooted, killed all docker processes and still no resolve.

Screenshot 2022-03-23 at 14 15 47
Carpenter0100 commented 2 years ago

same thing... docker for hangs while starting up forever. Tried to remove alle files like above but doesn't work.

hagaym commented 2 years ago

macOS 12.3.1 (21E258) Monterey docker Desktop 4.6.1 (76265)

Suffering from the same exact issue - application is stuck in the "Docker Desktop starting..." view.

Tried: restart; clear-data; reset-to-factory; reboot; uninstall, reinstall (with brew), uninstall again, delete all ‘docker’ related remainders, reinstall…

Nothing works! unbelievable :(

nickopris commented 2 years ago

Just updated to Monterey and Docker Desktop 4.6.1 on Mac. 'Docker Desktop is starting...' forever. I rebooted, killed all docker processes and still no resolve. Screenshot 2022-03-23 at 14 15 47

I downgraded to 4.5.0 (74594) and back to gRPC FUSE. I will come back to this when somebody finds a possible solution.

ArxXx commented 2 years ago

for the MAC users, just resolved the issue for myself. I had the pre-latest version of docker-desktop and I disabled "Use gRPC Fuse for file sharing" and the endless "docker starting" loop began. Removed docker desktop, installed the latest 4.6.1 (76265), still in endless loop ("Use gRPC Fuse for file sharing" was still disabled).

Ended up modifying ...~/Library/Group Containers/group.com.docker/features-overrides.json { "grpcfuseV2": { "name": "", "label": "Use grpcfuse for filesharing by default", "enabled": false } } setting "enabled:true" and it started working again. Prior that I also did: softwareupdate --install-rosetta

VinnyR1am commented 2 years ago

Nothing mentioned here worked for me. I was running docker 4.6.1. I went down to docker4.0 and it worked. I have not updated to the latest version after this.

jpughcs commented 2 years ago

for the MAC users, just resolved the issue for myself. I had the pre-latest version of docker-desktop and I disabled "Use gRPC Fuse for file sharing" and the endless "docker starting" loop began. Removed docker desktop, installed the latest 4.6.1 (76265), still in endless loop ("Use gRPC Fuse for file sharing" was still disabled).

Ended up modifying ...~/Library/Group Containers/group.com.docker/features-overrides.json { "grpcfuseV2": { "name": "", "label": "Use grpcfuse for filesharing by default", "enabled": false } } setting "enabled:true" and it started working again. Prior that I also did: softwareupdate --install-rosetta

Same issue here after experiencing performance problems with grpcfuse and attempting to disable it. The buttons under Troubleshooting were unresponsive in this broken state. Simply enabling grpcfuse again allowed Docker to start up and allowed me to "factory reset." Only after doing this, disabling grpcfuse worked correctly.

korenhe commented 2 years ago

for the MAC users, just resolved the issue for myself. I had the pre-latest version of docker-desktop and I disabled "Use gRPC Fuse for file sharing" and the endless "docker starting" loop began. Removed docker desktop, installed the latest 4.6.1 (76265), still in endless loop ("Use gRPC Fuse for file sharing" was still disabled).

Ended up modifying ...~/Library/Group Containers/group.com.docker/features-overrides.json { "grpcfuseV2": { "name": "", "label": "Use grpcfuse for filesharing by default", "enabled": false } } setting "enabled:true" and it started working again. Prior that I also did: softwareupdate --install-rosetta

This solves my problem.

kasabov commented 2 years ago

Upgrading to 4.7.0 after deleting ~/Library/Containers/com.docker.docker worked for me.

VanPaitin commented 2 years ago

Here is what worked for me:

peterballard42 commented 2 years ago

As with @kasabov , upgrading and then deleting ~/Library/Containers/com.docker.docker worked for me. Factory reset was not enough.

demeralde commented 2 years ago

I still haven't been able to get this to work after an hour of troubleshooting. I've tried many things with no luck, including suggestions on this thread.

I'm incredibly disappointed with the unreliability of this desktop app. It suddenly broke after upgrading my OS to Monterey 12.4.