Vinay Sharma
Vinay Sharma

Reputation: 3807

Docker Desktop Not Opening On Mac

The Docker Desktop icon flashes on the dock briefly and it doesn’t launch. It crashes silently without any error messages on the screen. The com.docker.diagnose tool is unable to diagnose from the terminal, the output of which has been attached below.

Output of /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check

➜  ~ /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check
Starting diagnostics

[PASS] DD0027: is there available disk space on the host?
[SKIP] DD0028: is there available VM disk space?
[FAIL] DD0031: does the Docker API work? Cannot connect to the Docker daemon at unix://docker.raw.sock. Is the docker daemon running?
[1]    3128 killed     /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check

Output of /Applications/Docker.app/Contents/MacOS/com.docker.diagnose gather --upload

➜  ~ /Applications/Docker.app/Contents/MacOS/com.docker.diagnose gather --upload
Gathering diagnostics for ID 4DC1603E-1354-4CA3-BB31-4E0C839D67C2/20220819183640 into /var/folders/q1/9nwl1r8s4hgcp4q8_grx1kvmw56qkc/T/4DC1603E-1354-4CA3-BB31-4E0C839D67C2/20220819183640.zip.
This may take up to 15 minutes.
time="2022-08-20T00:06:40+05:30" level=info msg="Triggering Linux sysrq and log flushes via a unix socket: diagnosticd.sock" type=unixsock
time="2022-08-20T00:06:40+05:30" level=warning msg="/flush failed: Post \"http://unix/flush\": dial unix diagnosticd.sock: connect: no such file or directory" type=unixsock
[1]    3639 killed     /Applications/Docker.app/Contents/MacOS/com.docker.diagnose gather --upload

Information

Upvotes: 8

Views: 14703

Answers (4)

Olivier L.
Olivier L.

Reputation: 81

I had the same problem. I killed 'Docker' processes and restart Docker Desktop. I get back Docker Desktop launched.

  1. Open 'Activities Monitor'
  2. Filter processes listed on 'docker'keyword
  3. Note the PID of the 2 'Docker' processes
  4. From a terminal, kill those 2 processes : kill pid or kill -9 pid
  5. Run Docker app

It should work.

Upvotes: 8

muTheTechie
muTheTechie

Reputation: 1683

Restarting the Mac solved the issue.

[I tried to logout and login, but the restart only solved the issue.]

Upvotes: 1

Keegan Fisher
Keegan Fisher

Reputation: 360

TL;DR
RESTART YOUR MAC. This should solve your problem. (After installing Docker Desktop for Mac (https://www.docker.com/products/docker-desktop/))


I was struggling with this for quite some time. I downloaded Docker Desktop for Mac (using Catalina OS 10.15.7), but after installation, I would try to open it and nothing would happen.

Let me clarify, On the first time opening the app (from Applications folder), it would ask me to "allow" the application, but on every other attempt, a Docker Desktop process would start, but no GUI would open and the tray icon wouldn't appear. After checking the Docker in Activity Monitor app, it would usually say "not responding".

After reading several articles and message boards, nothing helped. I finally decided to reset my Macbook Pro... wah-lah, problem solved. I don't know why the installation process doesn't prompt you to restart your Mac, but do it and it should solve your problem.

Upvotes: 1

shinyoung choi
shinyoung choi

Reputation: 91

I had same problem, I installed new version of docker and did the below. It worked for me.

rm -rf ~/Library/Group\ Containers/group.com.docker
rm -rf ~/Library/Containers/com.docker.docker
rm -rf ~/.docker

Upvotes: 8

Related Questions