Have you encountered the dreaded "Docker will damage your computer" or "com.docker.socket was not opened because it contains malware" error recently? Don鈥檛 worry鈥攜our Mac is safe! 馃帀
After struggling with this issue myself, I finally found a workaround that worked like a charm, and I鈥檓 sharing it here to help others in the community. 馃挕
Here鈥檚 what you can do to resolve the problem:
1锔忊儯 Close Docker and kill all running Docker processes:
docker kill $(docker ps -q)
2锔忊儯 Check if vmnetd processes are running and kill them (if they exist):
ps aux | grep vmnetd
3锔忊儯 Remove the problematic vmnetd file:
sudo rm /Library/PrivilegedHelperTools/com.docker.*
4锔忊儯 Download the latest Docker .dmg file from the official website.
5锔忊儯 Restart your Mac鈥攖his step is crucial! Without restarting, you鈥檒l likely keep seeing the popup.
6锔忊儯 Install Docker via command line:
cd ~/Downloads
sudo hdiutil attach Docker.dmg
sudo /Volumes/Docker/Docker.app/Contents/MacOS/install
sudo hdiutil detach /Volumes/Docker
7锔忊儯 Open Docker from Applications and it should work fine! 馃帀
For more details, check out the ongoing discussion on GitHub or Docker Community Forum here.
I hope this helps save someone time and frustration! If you鈥檝e experienced this or found another solution, feel free to share in the comments. 馃檶
Top comments (13)
I use orb stack. Pretty stable and just works.
@thenaman047 Thanks for sharing about Orb Stack! I've heard good things about it being a lightweight and stable alternative to Docker Desktop, especially on macOS. 馃槉 How's your experience with it so far? Do you find it handles everything you need compared to Docker Desktop?
I'd say for 80-90% of docker needs like building, tagging & running containers. It just works flawlessly. The UI has just enough options for most needs. And if you are good with docker commands, it's more than enough.
Can docker images and docker compose things be run using it?
Anything that runs docker is supported here, docker, docker compose both work seamlessly.
They also have kubernetes support but I haven't given that a shot, but based on how amazing this is for docker. Am sure it'll be the same for kubernetes too.
Wow. Thanks. Lot for getting this to me at the right time.
You're most welcome! 馃槉 I'm so glad that this was helpful for you.
Downloading latest version and Reinstalling fixed it for me
Glad that worked for you! 馃槉 I tried downloading and reinstalling as well, but unfortunately, it didn鈥檛 fix the issue on my end. That鈥檚 why I had to go through the additional steps I shared. It seems like the solution might vary depending on the setup or underlying issue.
Thanks, man! =)
Welcome馃槉
Hi! I hope you don鈥檛 mind me dropping this resolution here as well: docker.com/blog/incident-update-do...
Hi! Thanks for sharing this link鈥攊t鈥檚 always great to have official resources for reference. 馃槉 Hopefully, this will help others facing similar issues too!