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

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

Open rje0929 opened this issue 4 years ago • 93 comments
trafficstars

  • [x] I have tried with the latest version of my channel (Stable or Edge)
  • [x] I have uploaded Diagnostics
  • Diagnostics ID: 9516E931-4567-4F91-AACB-30019CED0937/20201209185508

Expected behavior

Docker starts up

Actual behavior

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

Information

  • macOS Version: 10.15.7

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.

rje0929 avatar Dec 09 '20 19:12 rje0929

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.

keepitreal avatar Dec 11 '20 17:12 keepitreal

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

gabor-boros avatar Dec 13 '20 09:12 gabor-boros

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

tudoramariei avatar Dec 14 '20 07:12 tudoramariei

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.

glitterlip avatar Dec 14 '20 09:12 glitterlip

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.

kiziltas avatar Dec 14 '20 09:12 kiziltas

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

tudoramariei avatar Dec 14 '20 12:12 tudoramariei

@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.

colceagus avatar Dec 17 '20 12:12 colceagus

@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

tudoramariei avatar Dec 17 '20 16:12 tudoramariei

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 avatar Dec 21 '20 00:12 tiborvass

@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.

tiborvass avatar Dec 21 '20 00:12 tiborvass

@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...

kodywilson avatar Jan 22 '21 18:01 kodywilson

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.

gpongelli avatar Mar 01 '21 21:03 gpongelli

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.

  • Do step no. 2, event though I only have Docker.dmg v2.5.0.1
  • Do step no.3
  • Then install using homebrew to install Docker Desktop v3.2.2

It's working, thank you very much.

fsutawanir avatar Mar 19 '21 10:03 fsutawanir

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

aayushrangwala avatar May 02 '21 09:05 aayushrangwala

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.

kahitarich avatar Jul 09 '21 15:07 kahitarich

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.

shannon-slattery avatar Jul 29 '21 16:07 shannon-slattery

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.

LumberSzquatch avatar Sep 09 '21 14:09 LumberSzquatch

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.

KlausVii avatar Sep 15 '21 10:09 KlausVii

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.

slifty avatar Oct 04 '21 18:10 slifty

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

Hermanverschooten avatar Oct 19 '21 07:10 Hermanverschooten

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 icon says there's an update
  • I download and install update
  • Accept new ToS
  • Docker hangs on "Starting..."
  • I eventually quit Docker Desktop and restart
  • Docker unusable, rapidly flips between "Starting" and "Stopping"

Docker Desktop 4.1.1 MacOS 11.4

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

0x000bff avatar Nov 17 '21 17:11 0x000bff

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

Bojne avatar Nov 18 '21 08:11 Bojne

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.

atakemura avatar Nov 23 '21 03:11 atakemura

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

acatxnamedvirtue avatar Nov 23 '21 15:11 acatxnamedvirtue

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.

anatawa12 avatar Dec 09 '21 07:12 anatawa12

Rebooting may MAC solved the issue

orenpinei avatar Dec 19 '21 15:12 orenpinei

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.

nomadme avatar Dec 28 '21 06:12 nomadme

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

almokhtarbr avatar Jan 04 '22 11:01 almokhtarbr

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

noc2spam avatar Jan 18 '22 10:01 noc2spam

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

igorMIA avatar Jan 18 '22 16:01 igorMIA