Can not run Docker on Mac M3
Description
Hi everyone, currently I am having a problem, Docker couldn't be launched every time I click open it (thought it still running in Activities monitor). I tried to reinstall with many versions but it's still there.
Running
Applications (As you see Docker Icon)
Terminal
I expected it would open a dashboard (as before), but now seem it's having a problem causing it cant work properly. Thank you
Reproduce
- Install Docker
- Open it
Expected behavior
No response
docker version
Client:
Version: 27.4.0
API version: 1.47
Go version: go1.22.10
Git commit: bde2b89
Built: Sat Dec 7 10:35:43 2024
OS/Arch: darwin/arm64
Context: default
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
docker info
Client:
Version: 27.4.0
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
333838382
Additional Info
No response
Hi @FCBTruong,
can you download version 4.37.2 (released last week), then upgrade by opening the dmg and drag-and-dropping the Docker icon to the Applications folder?
It will probably ask your password (in order to copy new versions of vmnetd and socket binaries).
I have the same issue even on version 4.37.2. the problem began on Friday. I had to kill the docker process because it used too much ram and my computer lagged. since then yesterday I only managed to turn on docker once.
I also have the same issue on version [4.37.2]
Same for me with 4.37.2
Have you rebooted the computer after installing latest version?
Have you rebooted the computer after installing latest version?
Yes I did, I installed latest version 4.37.2 (fix malware). I also tried to shut down my mac and restart again but still not working. I think problem may come from some conflict in my mac architecture
Have you rebooted the computer after installing latest version?
Reboot somehow helped to me btw, thanks! Maybe it will be better to add notification that it is needed (or maybe I was looking poorly to them if they exist)
Have you rebooted the computer after installing latest version?
Reboot somehow helped to me btw, thanks! Maybe it will be better to add notification that it is needed (or maybe I was looking poorly to them if they exist)
Despite multiple attempts to restart my mac, still got the error
@FCBTruong can you uninstall using this CLI command (because Desktop does not start on your laptop):
/Applications/Docker.app/Contents/MacOS/uninstall
and then install using the CLI?
ok, I think it's working. the steps I did
- removed docker manually from Applications (move to trash)
- in terminal I did brew uninstall docker (strange, but there was something else after manual removal)
- installed docker desktop from https://docs.docker.com/desktop/setup/install/mac-install/
- reboot (not running docker earlier, just installing)
- started docker correctly
my setup
/Applications/Docker.app/Contents/MacOS/uninstall
When I attempt to /Applications/Docker.app/Contents/MacOS/uninstall I get the following error:
Error: open /Users/<USER>/Library/Group Containers/group.com.docker/settings-store.json: no such file or directory
Rebooting isn't helping at all...
the error is not an issue. Have executed the installation via the CLI?
the error is not an issue. Have executed the installation via the CLI?
Docker is still installed after running the uninstall, though... so I'd say it's an issue?
This worked for me: https://github.com/docker/for-mac/issues/7531#issuecomment-2580595610 Probably this makes the difference:
rm -rf ~/.docker
sudo rm -f /Library/LaunchDaemons/com.docker.socket.plist
sudo rm -f /Library/LaunchDaemons/com.docker.vmnetd.plist
sudo rm -f /Library/PrivilegedHelperTools/com.docker.socket
sudo rm -f /Library/PrivilegedHelperTools/com.docker.vmnetd
@FCBTruong can you uninstall using this CLI command (because Desktop does not start on your laptop):
/Applications/Docker.app/Contents/MacOS/uninstalland then install using the CLI?
That worked, thank you!
This worked for me: #7531 (comment) Probably this makes the difference:
rm -rf ~/.docker sudo rm -f /Library/LaunchDaemons/com.docker.socket.plist sudo rm -f /Library/LaunchDaemons/com.docker.vmnetd.plist sudo rm -f /Library/PrivilegedHelperTools/com.docker.socket sudo rm -f /Library/PrivilegedHelperTools/com.docker.vmnetd
This made it! Thank you so much.
https://github.com/docker/for-mac/issues/7527
the recommended fix is not working for me even after reinstalling and following the fix posted above. Running on an M2 macbook.
I have an Intel chip.
I had the error referenced here: https://github.com/docker/for-mac/issues/7541#issuecomment-2586821514
These steps were insufficient for me on their own in addition to all the other troubleshooting links that have been posted:
rm -rf ~/.docker
sudo rm -f /Library/LaunchDaemons/com.docker.socket.plist
sudo rm -f /Library/LaunchDaemons/com.docker.vmnetd.plist
sudo rm -f /Library/PrivilegedHelperTools/com.docker.socket
sudo rm -f /Library/PrivilegedHelperTools/com.docker.vmnetd
My solution was to hunt down every last file on my machine that might've held Docker configuration and delete it: find / -name "*[Dd]ocker*":
rm -rf /usr/local/bin/docker*
rm -rf /usr/local/bin/com.docker.cli
rm /usr/local/bin/kubectl.docker
rm -rf /Library/Application\ Support/com.docker.docker
rm -rf ~/Library/Application\ Support/Docker\ Desktop
rm -rf ~/Library/Preferences/com.electron.dockerdesktop.plist
rm -rf ~/Library/Preferences/com.docker.docker.plist
rm -rf ~/Library/Application\ Scripts/group.com.docker
rm -rf ~/Library/Group\ Containers/group.com.docker
rm -rf ~/Library/Containers/com.docker.docker
rm -rf ~/Library/Caches/Docker\ Desktop
rm -rf ~/.kube
After this I was able to install 4.37.2 successfully
I still can run docker. It installs. When I run the docker app I get two processes, but the desktop doesn't load and I can't run docker-compose. I've tried all the things a few times. Please to help.
docker-compose build
WARN[0000] The "CUSTOM_JAVA_OPTS" variable is not set. Defaulting to a blank string.
WARN[0000] /Users/epreston/work/integrations/lti-launch-service/docker-compose.yaml: the attribute version is obsolete, it will be ignored, please remove it to avoid potential confusion
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
epreston@NOA-M-J9404J1243 lti-launch-service % !ps ps aux | grep -i docker epreston 2825 0.0 0.0 410733312 1488 s000 S+ 2:12PM 0:00.01 grep -i docker epreston 2649 0.0 0.2 412421872 76576 ?? S 2:08PM 0:00.09 /Applications/Docker.app/Contents/MacOS/com.docker.backend run epreston 2641 0.0 0.2 412082992 71392 ?? S 2:08PM 0:00.12 /Applications/Docker.app/Contents/MacOS/com.docker.backend
Apple M3 Pro 36GB RAM Mac OS Sonoma 14.7.2 (23H311)