Open snowdream opened 5 months ago
I also got this issue after upgrade.
I had to clean up everything inside .docker
and uninstall socket_vmnet
I dont know which of those steps helped here.
Ok I found the issue, adding "insecure-registries" : [ "****", "****" ]
to daemon.json makes it unable to start
It happened to me that I updated docker and when I booted up I got the same message.
I solved it by completely eliminating docker, here are the steps I followed to solve the problem.
Click Go > Go to Folder and navigate to the following folders. ~/Library/Application Support/Docker Desktop/ ~/Library/Caches/Docker Desktop/ ~/Library/Logs/Docker Desktop/ ~/Library/Preferences/com.docker.docker.plist ~/Library/Containers/com.docker.docker/ ~/Library/Saved Application State/com.electron.docker-frontend.savedState ~/.docker/
luck
@luisgagocasas you probably removed daemon.json
with bad records like mine when you dropped .docker
Issue resolved when reverting back to v4.32 from release.
It happened to me that I updated docker and when I booted up I got the same message.
I solved it by completely eliminating docker, here are the steps I followed to solve the problem.
Click Go > Go to Folder and navigate to the following folders. ~/Library/Application Support/Docker Desktop/ ~/Library/Caches/Docker Desktop/ ~/Library/Logs/Docker Desktop/ ~/Library/Preferences/com.docker.docker.plist ~/Library/Containers/com.docker.docker/ ~/Library/Saved Application State/com.electron.docker-frontend.savedState ~/.docker/
luck
This worked for me, my steps:
Will uninstalling docker desktop also remove containers and volumes?
Will uninstalling docker desktop also remove containers and volumes?
@umair-me, yes this is a destructive solution. Deleting ~/Library/Containers/com.docker.docker/
as suggested in https://github.com/docker/for-mac/issues/7340#issuecomment-2195741371 will remove the VM that Docker uses to run on macOS which does contain all your containers and images. I'm unsure about volumes, but I typically mount local files on my Mac from outside of that VM which this solution shouldn't touch; e.g. I mount ~/Desktop/test/ to a container's ~/test directory. The test directory on my Mac's desktop wouldn't be touched by following @luisgagocasas' comment.
It happened to me when upgrading to 4.33. In addition, Docker froze after I clicked to get diagnostics.
I closed Docker Desktop and started it again and all looks working perfectly without doing anything additional.
Just remove .docker
Inside of Finder just click to Go -> Go to folder... -> Paste ~/.docker/ and remove it.
Experienced a similar issue on client 27.1.1 with Public Beta since updating the other day and trying to open Docker Desktop v4.33.0
Tried removing all suggested files and had perms issues. Only thing that solved it for me was:
- booting to recovery mode
- removing the containers folder,
- rebooting immediately after removing that, and opening Docker
- When Docker opened, it opened to the end of the installer.
rm -rf Library/Containers/com.docker.docker
This of course removed all my containers but allowed me to open Docker without crashing.
Example of info
docker info
Client:
Version: 27.1.1
Context: desktop-linux
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.16.1-desktop.1
Path: /Users/DynamicApproach/.docker/cli-plugins/docker-buildx
compose: Docker Compose (Docker Inc.)
Version: v2.29.1-desktop.1
Path: /Users/DynamicApproach/.docker/cli-plugins/docker-compose
debug: Get a shell into any image or container (Docker Inc.)
Version: 0.0.34
Path: /Users/DynamicApproach/.docker/cli-plugins/docker-debug
desktop: Docker Desktop commands (Alpha) (Docker Inc.)
Version: v0.0.14
Path: /Users/DynamicApproach/.docker/cli-plugins/docker-desktop
dev: Docker Dev Environments (Docker Inc.)
Version: v0.1.2
Path: /Users/DynamicApproach/.docker/cli-plugins/docker-dev
extension: Manages Docker extensions (Docker Inc.)
Version: v0.2.25
Path: /Users/DynamicApproach/.docker/cli-plugins/docker-extension
feedback: Provide feedback, right in your terminal! (Docker Inc.)
Version: v1.0.5
Path: /Users/DynamicApproach/.docker/cli-plugins/docker-feedback
init: Creates Docker-related starter files for your project (Docker Inc.)
Version: v1.3.0
Path: /Users/DynamicApproach/.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: /Users/DynamicApproach/.docker/cli-plugins/docker-sbom
scout: Docker Scout (Docker Inc.)
Version: v1.11.0
Path: /Users/DynamicApproach/.docker/cli-plugins/docker-scout
Server:
ERROR: request returned Internal Server Error for API route and version http://%2FUsers%2FDynamicApproach%2F.docker%2Frun%2Fdocker.sock/v1.46/info, check if the server supports the requested API version
errors pretty printing info
May not be directly relevant though
For what it's worth— I tried every suggestion mentioned here and then some. The one that did the trick for me was
rm -rf ~/Library/Containers/com.docker.docker/
YMMV
Just remove
.docker
Inside of Finder just click to Go -> Go to folder... -> Paste ~/.docker/ and remove it.
Great! Docker works again on my mac!
It happened to me that I updated docker and when I booted up I got the same message.
I solved it by completely eliminating docker, here are the steps I followed to solve the problem.
Click Go > Go to Folder and navigate to the following folders. ~/Library/Application Support/Docker Desktop/ ~/Library/Caches/Docker Desktop/ ~/Library/Logs/Docker Desktop/ ~/Library/Preferences/com.docker.docker.plist ~/Library/Containers/com.docker.docker/ ~/Library/Saved Application State/com.electron.docker-frontend.savedState ~/.docker/
luck
It works for me. Thanks!!!
Ok I found the issue, adding
"insecure-registries" : [ "****", "****" ]
to daemon.json makes it unable to start
thanks i fixed by removing this "insecure-registries"
Description
running engine: waiting for the Docker API: context deadline exceeded
Reproduce
1 start the docker desktop for macos
Expected behavior
docker desktop for macos started
docker version
docker info
Diagnostics ID
F39A3D5A-DFC0-45CF-9F0D-7831FAAC3562/20240625231528
Additional Info