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
See this issue in the Docker for Mac issue tracker.
Quoting from that issue:
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. Theuninstall
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.if you don’t need the the docker desktop interface and just the cli works for you, do the following:
brew install docker docker-compose colima
;colima start
;If you getting an error related to "docker-credential-desktop", do the following:
sudo vi ~/.docker/config.json
;Note: all your images, networks and volumes will be lost during this process.