🚨 Attention Docker Users on Mac 🚨
Sanchita Paul

Sanchita Paul @saanchitapaul

About: Full Stack Web Developer

Joined:
Feb 2, 2022

🚨 Attention Docker Users on Mac 🚨

Publish Date: Jan 9
68 13

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. 🙌

Comments 13 total

  • Anand b
    Anand bJan 10, 2025

    Wow. Thanks. Lot for getting this to me at the right time.

    • Sanchita Paul
      Sanchita PaulJan 13, 2025

      You're most welcome! 😊 I'm so glad that this was helpful for you.

  • TheNaman047
    TheNaman047Jan 11, 2025

    I use orb stack. Pretty stable and just works.

    • S.Go
      S.GoJan 11, 2025

      Can docker images and docker compose things be run using it?

      • TheNaman047
        TheNaman047Jan 11, 2025

        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.

    • Sanchita Paul
      Sanchita PaulJan 13, 2025

      @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?

      • TheNaman047
        TheNaman047Jan 13, 2025

        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.

  • Andy Ramirez
    Andy RamirezJan 11, 2025

    Hi! I hope you don’t mind me dropping this resolution here as well: docker.com/blog/incident-update-do...

    • Sanchita Paul
      Sanchita PaulJan 13, 2025

      Hi! Thanks for sharing this link—it’s always great to have official resources for reference. 😊 Hopefully, this will help others facing similar issues too!

  • Onyela Udochukwuka
    Onyela UdochukwukaJan 11, 2025

    Downloading latest version and Reinstalling fixed it for me

    • Sanchita Paul
      Sanchita PaulJan 13, 2025

      Glad that worked for you! 😊 I tried downloading and reinstalling as well, but unfortunately, it didn’t fix the issue on my end. That’s 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.

  • Gustavo Magalhães
    Gustavo MagalhãesJan 13, 2025

    Thanks, man! =)

Add comment