DEV Community

Cover image for 🚨 Attention Docker Users on Mac 🚨
Sanchita Paul
Sanchita Paul

Posted on

1

🚨 Attention Docker Users on Mac 🚨

Have you encountered the dreaded "Docker will damage your computer" or "com.docker.socket was not opened because it contains malware" error recently? Don’t worry—your Mac is safe! 🎉

After struggling with this issue myself, I finally found a workaround that worked like a charm, and I’m sharing it here to help others in the community. 💡

Here’s what you can do to resolve the problem:

1️⃣ Close Docker and kill all running Docker processes:

docker kill $(docker ps -q)
Enter fullscreen mode Exit fullscreen mode

2️⃣ Check if vmnetd processes are running and kill them (if they exist):

ps aux | grep vmnetd  
Enter fullscreen mode Exit fullscreen mode

3️⃣ Remove the problematic vmnetd file:

sudo rm /Library/PrivilegedHelperTools/com.docker.*  
Enter fullscreen mode Exit fullscreen mode

4️⃣ Download the latest Docker .dmg file from the official website.

5️⃣ Restart your Mac—this step is crucial! Without restarting, you’ll 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 
Enter fullscreen mode Exit fullscreen mode

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’ve experienced this or found another solution, feel free to share in the comments. 🙌

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more