docker / for-mac

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

Crash during the start #7030

Open yantonov opened 1 year ago

yantonov commented 1 year ago

Description

Docker 4.24.2. is downloaded from this page https://docs.docker.com/desktop/release-notes/

https://desktop.docker.com/mac/main/amd64/124339/Docker.dmg

Docker version inside command line, UI is not aligned by the way with the release version.

Reproduce

Run docker desktop

Expected behavior

The application doesn't crash

docker version

docker version
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Client:
 Cloud integration: v1.0.35+desktop.5
 Version:           24.0.6
 API version:       1.43
 Go version:        go1.20.7
 Git commit:        ed223bc
 Built:             Mon Sep  4 12:28:49 2023
 OS/Arch:           darwin/amd64
 Context:           default

docker info

docker info
Client:
 Version:    24.0.6
 Context:    default
 Debug Mode: false

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

Diagnostics ID

Application crashes, impossible to get it

Additional Info

A crash report is here: https://gist.github.com/yantonov/d6499adda01e8aa24ed387d7274247ab

It's impossible to put is directly here (due to the size of the comment)

bsousaa commented 1 year ago

@yantonov can you generate a diagnostics from the terminal? https://docs.docker.com/desktop/troubleshoot/overview/#diagnose-from-the-terminal

yantonov commented 1 year ago

Diagnostics ID: 2DE5778C-8713-4FE5-8F36-BA425B460A35/20231014121658 (uploaded)

slepesin commented 1 year ago

After installation docker desktop I tried to start it. My computer restarted. Situation repeated after second attempt to start Docker Desktop. After third attempt Docker Desktop started, but it had status - 'Docker Desktop is stoped'. When I commanded in terminal docker info I saw - Cannot connect to the Docker daemon at unix:///Users/_______/.docker/run/docker.sock. Is the docker daemon running?.

I had MacBook M1 Pro. MacOs Ventura 13.6. Docker Desktop version 4.24.2

This situation repeated on macOS Monterey 12.7 and Sonoma 14 on my MacBook.

prbobba commented 1 year ago

I had the same issue yesterday even after installing multiple times. I removed the installation and restarted my Mac. After that I installed it again today. It suddenly works.

Version : 4.24.2 (124339)

slepesin commented 1 year ago

I had the same issue yesterday even after installing multiple times. I removed the installation and restarted my Mac. After that I installed it again today. It suddenly works.

Version : 4.24.2 (124339)

I did as you said, but it not helped me. My MacBook restarted when I launched Docker Desktop. For a few seconds I saw "Starting a docker engine" then my macBook restarted. After some attempts Docker Desktop started but I saw again Cannot connect to the Docker daemon at unix:///Users/_______/.docker/run/docker.sock. Is the docker daemon running?.

yantonov commented 1 year ago
  1. Removing the installation doesn't help (including manually removing the remaining files)
  2. same for previous versions
  3. it will be nice to create a separate issue for each case, otherwise it can confuse because the initial question was about the Intel chip, following comments about M1 Pro, so the env is different
evalenzuela commented 1 year ago

I have same issue (restarting) when trying to start docker after trying to install version 4.23 (I am testing downgrading since version 4.24 Docker does not start. at all), I have Mac M1 Pro.