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 quits unexpectedly on launch #7275

Open peastman opened 6 months ago

peastman commented 6 months ago

Description

I cannot launch Docker on my Mac M1 Pro. When I select it from the Applications folder, a window immediately appears with the message, "Docker Desktop quit unexpectedly." This appears to be a duplicate of #6056, which was closed without ever being resolved. I tried updating to the latest release and rebooting. Neither one helps.

Reproduce

  1. Double-click the "Docker" application.

Expected behavior

No response

docker version

Cannot connect to the Docker daemon at unix:///Users/peastman/.docker/run/docker.sock. Is the docker daemon running?
Client:
 Cloud integration: v1.0.35+desktop.13
 Version:           26.0.0
 API version:       1.45
 Go version:        go1.21.8
 Git commit:        2ae903e
 Built:             Wed Mar 20 15:14:46 2024
 OS/Arch:           darwin/arm64
 Context:           desktop-linux

docker info

Client:
 Version:    26.0.0
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.13.1-desktop.1
    Path:     /usr/local/lib/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.26.1-desktop.1
    Path:     /usr/local/lib/docker/cli-plugins/docker-compose
  debug: Get a shell into any image or container. (Docker Inc.)
    Version:  0.0.27
    Path:     /usr/local/lib/docker/cli-plugins/docker-debug
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.2
    Path:     /usr/local/lib/docker/cli-plugins/docker-dev
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.23
    Path:     /usr/local/lib/docker/cli-plugins/docker-extension
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  v1.0.4
    Path:     /usr/local/lib/docker/cli-plugins/docker-feedback
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.1.0
    Path:     /usr/local/lib/docker/cli-plugins/docker-init
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     /usr/local/lib/docker/cli-plugins/docker-sbom
  scout: Docker Scout (Docker Inc.)
    Version:  v1.6.3
    Path:     /usr/local/lib/docker/cli-plugins/docker-scout

Server:
ERROR: Cannot connect to the Docker daemon at unix:///Users/peastman/.docker/run/docker.sock. Is the docker daemon running?
errors pretty printing info

Diagnostics ID

DA4A7E61-4B84-45D0-8CF0-2A3B585BAF43/20240509225841

Additional Info

No response

voonyee commented 6 months ago

Hi there, can you try a clean reinstallation to see if it helps?

  1. Uninstall Docker Desktop.

  2. Delete the below files (note that the below commands are destructive, meaning it will delete all your images, volumes, and any Docker related files on your system) rm -rf ~/Library/Group\ Containers/group.com.docker; rm -rf ~/Library/Containers/com.docker.docker; rm -rf ~/.docker

  3. Reinstall Docker Desktop.

peastman commented 6 months ago

I still get the same error after doing the above.