skip to Main Content

I noticed this issue on a Mac running Docker Desktop. I’ve been running Docker on this Mac for a while with no problems, and this cropped up apropos of nothing, after a reboot:

"com.docker.socket" was not opened because it contains malware

Anyone have idea why?

Note: I’m recreating this question because it was asked about 45 minutes ago and then deleted by the author, as I was answering it. Yes, perhaps it should’ve been asked on apple.stackexchange.com; that’s a valid criticism and I’ll take it.

2

Answers


  1. Chosen as BEST ANSWER

    See this issue in the Docker for Mac issue tracker.

    Quoting from that issue:

    Docker rotated an old signing certificate for macOS and this unexpectedly broke users who currently have Docker Desktop installed.

    I opted to just uninstall Docker and reinstall it, rather than muck around in the terminal typing weird commands.

    In my case, the file identified by macOS as malware was /Library/PrivilegedHelperTools/com.docker.socket, and it was an old May 2024 version, which I had to remove manually. The uninstall binary in the Docker app bundle seems to have missed that.

    Afterwards, I re-installed Docker by dragging the app icon from the latest .dmg image to the "Applications" folder, and things appear to be fine so far.


  2. if you don’t need the the docker desktop interface and just the cli works for you, do the following:

    • kill Docker;
    • delete Docker Deskop from your Mac (just drag to the trash);
    • install only the docker cli and colima by running brew install docker docker-compose colima;
    • start the colima service colima start;
    • enjoy, the docker commands should be working now.

    If you getting an error related to "docker-credential-desktop", do the following:

    • open the docker config file sudo vi ~/.docker/config.json;
    • rename the key called "credsStore" to "credStore" and save.

    Note: all your images, networks and volumes will be lost during this process.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search