-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Workaround in description] Mac is detecting Docker as a malware and keeping it from starting #7520
Comments
can you tell us how old is the |
Running
|
Hi, Which version(s) of Docker Desktop have you tried? Which one is the highest one? Did you download it fresh?
then start Docker Desktop again? (Docker Desktop should re-install it on-demand when it needs it) Thanks, and sorry this happened to you! |
I uninstalled after the issue happened and re-installed the latest version available on the website - since deleting |
Ah maybe you need to (sudo) kill -9 the
show it running? |
Or any other docker process running?
|
$ps aux | grep vmnetd
user 25212 0.0 0.0 410733072 1664 s000 S+ 1:16pm 0:00.01 grep vmnetd
$ps aux | grep "[dD]ocker"
user 24255 0.0 0.2 412151024 73200 ?? S 1:05pm 0:00.15 /Applications/Docker.app/Contents/MacOS/com.docker.backend run |
It'd be helpful to get some system logs to see why macOS is rejecting
|
I see this at the end of the log output that looks suspicious:
|
Ah right, so Docker Desktop does not re-install
then restart Docker Desktop. edit: this probably needs you to update to at least Docker Desktop 4.35 before cp’ing |
This worked for me ^ |
That also worked for me! |
I uninstalled, and then reinstalled using the command line, and things seem to be working properly |
If someone is facing this issue, before removing the broken vmnetd or socket binary, could you please try to run these two commands and paste the output here:
|
This wasn't working for me
but reinstalling from command line worked. |
I have the same problem but with a small different detail. In the screenshot the file mentioned is @acassioaraujo your screenshot shows |
@zioproto I think both are affected since they were signed with the same certificate. If you have a chance, could you try to run the commands I posted in this comment please? This would help us a lot. #7520 (comment) |
@akerouanton It seems the signature cannot be verified:
|
This worked for me on version 4.32 |
@zioproto I just added two other commands to my comment, ie. EDIT: Let me re-add them here for clarity.
|
@akerouanton the certificate has been revoked:
Question: I am not familiar with this, is it normal that the verification url is plaintext http and not https ? and
here is the full certificate in text form:
|
@zioproto Thanks a lot! Last batch of questions:
|
It also worked for Docker 4.32.0, which we are stuck on due to the issue outlined here. |
difficult to say for sure because I am not able to start docker anymore.
Can you give me the full path to those files ? Do you need the full file ? this is my hash:
|
It should be:
But if one is missing on your system, don't worry and just upload what you have 🙂 |
Seeing similar issues. Downloaded the specific MacOS version (4.29.0) from https://desktop.docker.com/mac/main/arm64/145265/Docker.dmg and Apple wouldn't even let me install the dmg, with message When I use
|
I tried to download the latest version (4.37.2) as docker page indicated. It seems to have the same issue when installing (same warning and OSX constantly prompting to put it into trash). Is there is a work being done for a new version that has actually fixes this? Any ETA when it might be ready? |
put it on the desktop like i did
put it on the desk top like i did. |
After trying everything this surprisingly worked for me, but my team has already switched all the scripts to podman. Will wait for a proper fix. 🤞🏾 |
What works for me (tested on two MacBooks):
|
Worked for me on Mac with M1 chip and OS 14.6.1 |
Thank you, for ventura 13.4.1 (c) worked
|
@leobarcellos, you rock! Worked for me |
@acassioaraujo Great, It worked for me |
So is it malware or just old signatures? This makes sense to me given that it's been about 6 months since I used Docker. I just removed it from my machine but am curious to know why this fired and why tonight
|
All advices here have been counter productive for me. I had to remove docker from the start objects, reboot the computer and reinstall docker from the latest version 4.37.2. I lost quite some work and could not use my computer properly for three days in the row. I am really annoyed how this problem showed up out of blue air and kept me busy - especially given that similar problems have been known from the past few months. |
The procedure to update Docker in order to fix that problem is now documented on their website: https://docs.docker.com/desktop/cert-revoke-solution/#upgrade-to-docker-desktop-version-4372-recommended, and on this issue: #7527 (which also covers non-privileged users and Homebrew) |
Updating docker desktop directly to version 4.37.2 (179585) has solved this issue for me hassle free. |
I downloaded the version containing the fix, Didn't move it to Applications, It worked and I haven't received any warnings since then. Will wait for the complete fix. |
Same here! so, finally, I reinstalled it! and it works, but it deletes all my local db! 😭 with supabase ! |
That guide works fine for me. https://docs.docker.com/desktop/cert-revoke-solution/ |
@egbaydarov thank you! yes me too this guide fixed the issue for me https://docs.docker.com/desktop/cert-revoke-solution by following the instructions on "Upgrade to Docker Desktop version 4.37.2" (but I also had to empty the Trash) What is great about this solution is that it kept all my images, containers and volumes as they are!!! NOTE: after reinstalling it make sure to open the new installed Docker via Apps (i.e. if you had it pined in the dock that will refer to the old one) so open it from Apps then you can pin the new one in dock |
my error message looks different: “com.docker.socket” was not opened because it contains malware. This action did not harm your Mac. |
@gianlucamazza yes my error message was the same and I fixed it by following https://docs.docker.com/desktop/cert-revoke-solution by following the instructions on "Upgrade to Docker Desktop version 4.37.2" (also see my comment above) |
Same issue, The tip worked for me. |
The official (https://docs.docker.com/desktop/cert-revoke-solution/#upgrade-to-docker-desktop-version-4372-recommended) recommended solution worked on my Intel Mac with Sequoia 15.2 |
This step is necessary after downloading and running docker. Follow this #7520 (comment) |
Success! |
While I understand the immediate desire to get Docker back up and running since it's critical to many people's workflows, I think it's important to see a postmortem on this issue. Why was the certificate revoked, and by whom? This signing process is part of macOS' security strategy. If the certificate was revoked by Apple because they found an issue with the binary, a blog post that says nothing beyond "install this new version" is unsatisfactory. Was there or was there not malware? If not, what happened? If so, we have a much bigger problem. This was only detected after a restart, which means it was running on my machine for at least several days. On the other hand, if the issue was a process error on Docker or Apple's side that led to inadvertently revoking a valid certificate, it would be appropriate to explain how this happened and what measures are being taken to prevent it from happening again. |
So my circumstances were a bit different. I already had an older version of docker desktop installed (some version in 2024). Havent used Docker last few weeks but spontaneously got an error a few days ago about some error launching (in background I assume because it wasnt being used), kept getting the error so I un-installed it to avoid annoyance. Needed to use it yesterday so tried installing a fresh newer version. Then on installation got the error "Docker” is damaged and can’t be opened. You should move it to the Bin", so I complied and tried to download again, but same error kept occuring. Tried to restart Mac, pop up kept coming up whether yes or cancel chosen even when not invoking installation, even on a restart, everytime I restarted it started what seemed like the docker installation (saw the installation progress bar). Only way to stop the pop up was to go into System Settings/ General/Login Items, deactivate the "Docker.app", which shouldnt be there because it was uninstalled. That stopped the pop up. So it seemed like the log in item was lauching the docker.app, which was the installation not the actually docker app. Anyone can concur? |
the /usr/bin/env diskutil eject /private/tmp/homebrew-dmg20250112-37318-65te49/dmg.jkmJ3J :( update: Somehow, diskutil was very slow. I let the script run, and it completed after 56 minutes. |
I was still getting that the Docker engine wouldn't start after the suggestions from many above to: # Uninstall Docker with Homebrew:
brew uninstall --cask docker --force
brew uninstall --formula docker --force
# Reinstall Docker and Docker Desktop:
brew install --cask docker Do the above steps along with any sensible uninstall steps that you're seeing above before Important Even after all this I still needed to clean / purge the data. You can do this by:
Good luck! ☘ |
Description
Whenever Docker is started, this error is shown:
Reproduce
Workaround
Tip
If you face this issue, try the following procedure:
If that still doesn't work, download one of the currently supported release from the Release notes and re-apply step 2.
As suggested running this command is working for most of people that had this problem.
Original issue details
### docker versiondocker info
Diagnostics ID
Can't get a Diagnostics ID because I'm not able to open docker, the error is from MacOS
Additional Info
I tried installing older versions of Docker but the error is the same to all of them.
The text was updated successfully, but these errors were encountered: