Open aareki opened 1 year ago
Seeing the same thing. After upgrading Docker Desktop doesn't want to start.
macOS: Ventura 13.3.1 (a) - M1 Docker Desktop: 4.18.0 (104112)
Same as #6829
Completely uninstalling Docker Desktop, rebooting, and reinstalling it on my Mac M1 fixed it for me. https://docs.docker.com/desktop/uninstall/
Possibly unrelated, but I recently upgraded to macOS 13.3.1 (a) and Docker Desktop 4.19.0. I have an Intel Mac (not M1) and I have buildkit enabled, if that matters as well.
Although my Docker Desktop did not fail to start, I was seeing very odd performance issues while building a handful of specific images. These are typical Angular applications with fairly standard practices that had built successfully prior to upgrading Docker.
I can confirm that uninstalling Docker Desktop and then reinstalling it fixed the issues that I was seeing. Thank you, @cougarsyankeesfan for the suggestion! :tada:
Verbose details:
During the Docker build, we are running npm install
to fetch dependencies. This was failing to fetch basic Angular dependencies, such as @angular-devkit/build-angular
. Turning on verbose logging we could confirm that many dependencies of the application's were installing correctly, but a couple of them were reporting timeouts after ~1000s had passed:
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@typescript-eslint/utils/node_modules/semver 1683902164197
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@typescript-eslint/typescript-estree 1683902164197
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@typescript-eslint/typescript-estree/node_modules/semver 1683902164197
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@typescript-eslint/experimental-utils/node_modules/semver 1683902164197
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@typescript-eslint/experimental-utils/node_modules/@typescript-eslint/scope-manager 1683902164197
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@typescript-eslint/eslint-plugin/node_modules/semver 1683902164197
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@types/json-schema 1683902164198
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@types/express 1683902164198
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@nuxtjs/opencollective 1683902164198
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@jridgewell/trace-mapping 1683902164199
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@jridgewell/set-array 1683902164199
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@babel/types 1683902164200
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@babel/plugin-transform-regenerator 1683902164200
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@babel/plugin-transform-parameters 1683902164200
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@babel/plugin-transform-new-target 1683902164200
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@babel/plugin-transform-exponentiation-operator 1683902164200
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@babel/plugin-transform-block-scoping 1683902164201
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@babel/plugin-syntax-top-level-await 1683902164201
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@babel/plugin-syntax-dynamic-import 1683902164201
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@babel/plugin-proposal-class-properties 1683902164201
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@babel/helper-string-parser 1683902164201
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@babel/helper-skip-transparent-expression-wrappers 1683902164201
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@babel/helper-module-transforms 1683902164202
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@angular/compiler-cli 1683902164203
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@angular/cdk 1683902164204
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@angular/animations 1683902164204
#0 991.9 npm verb unfinished npm timer reifyNode:node_modules/@angular-devkit/core 1683902164204
#0 991.9 npm verb code 1
#0 991.9
#0 991.9 npm ERR! A complete log of this run can be found in:
#0 991.9 npm ERR! /root/.npm/_logs/2023-05-12T14_36_02_455Z-debug-0.log
------
failed to solve: process "/bin/sh -c npm install --loglevel=verbose" did not complete successfully: exit code: 1
So if Docker Desktop does start up properly under these versions, then it would appear that it can sometimes have degraded network or volume performance during docker build
as a symptom as well. I was unable to determine if the bottleneck was the download speed or the volume write speed, but figured I would share this analysis in case it might be helpful.
Uninstalling Docker Desktop and reinstalling it, per the suggestion above fixed the issue for me. And now the full image build completes in under 2 minutes using --no-cache
🎉 🎊
thanks all for the comment. Actually one of our tech support helped me to fix this. He told me to run the following script and it fixed the issue.
rm -rf ~/Library/Caches/com.docker.docker ~/Library/Cookies/com.docker.docker.binarycookies ~/Library/Group\ Containers/group.com.docker ~/Library/Logs/Docker\ Desktop ~/Library/Preferences/com.docker.docker.plist ~/Library/Preferences/com.electron.docker-frontend.plist ~/Library/Saved\ Application\ State/com.electron.docker-frontend.savedState ~/.docker
Same problem here, @aareki script works to fix the issue. Needed to kill com.docker.backend in activity monitor and start docker.
next day after reboot same problem, again used the script to fix the issue. If it keeps returning I will need to look into downgrading
I have tried the latest version of Docker Desktop I have uploaded Diagnostics Diagnostics ID: 2023-05-08T15:20:11.536393000Z
Expected behavior
After attempting to start Docker Desktop for macOS Ventura, I can see Docker Desktop in the macOS menu bar and a Fatal Error message is popping up. I clicked Reset Docker to factory defaults and Docker Desktop is closed and disappeared from the menu bar.
Actual behavior
After attempting to start Docker Desktop for macOS Ventura, nothing happens.
Information
Output of: /Applications/Docker.app/Contents/MacOS/com.docker.diagnose check