Skip to content
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

Problem reinstalling Docker #7532

Closed
harishnreddy opened this issue Jan 9, 2025 · 26 comments
Closed

Problem reinstalling Docker #7532

harishnreddy opened this issue Jan 9, 2025 · 26 comments
Assignees

Comments

@harishnreddy
Copy link

Description

I ran into the malware warning issue - "Description Some versions of Docker Desktop might fail to start or function with the following error message: Malware Blocked. “com.docker.vmnetd”…"

But i did not see the patch note. Instead I deleted my Docker on my Mac (on M2). Now on trying to reinstall I am getting an error.

I tried the cli approach as well but was not successful.

ImageImage

Reproduce

  1. download docker for Mac / Mac silicon
  2. drag to application (to install)

Expected behavior

No response

docker version

unable to determine (latest version)

docker info

unable to determine (latest version)

Diagnostics ID

xxx

Additional Info

No response

@zarathustra323
Copy link

I'm experiencing the exact same issue. Attempted the script as described in #7527 to no avail. On any attempt to re-install, MacOS prompts to move Docker to trash.

Image

@harishnreddy
Copy link
Author

Thanks. Makes me feel better that my issue is reproducible by someone else.

Hopefully someone at Docker can identify a solution.

I initially detected the issue this morning when i did the following command to login to AWS to pull down a public image.

aws ecr-public get-login-password --region XXXX | docker login --username AWS --password-stdin public.ecr.aws

@janhelwich
Copy link

I have the same issue.

@janhelwich
Copy link

For me reinstall via Homebrew worked.
Make sure to clean up /usr/local/bin.

@Tomshr29
Copy link

Tomshr29 commented Jan 9, 2025

I have the same problem since today

@AlehandroL
Copy link

same problem since today

@zarathustra323
Copy link

zarathustra323 commented Jan 9, 2025

I was able to get my Mac working again by doing the following:

  • NOTE: if you're stuck with the "Docker" is damaged message, popping up over and over, try emptying your Trash first, then restarting...
  1. Run the script as outlined in Malware detection prevents Docker Desktop to start #7527

  2. Kill any running Docker processes

  3. Move /Applications/Docker.app to trash (or delete it)

  4. Empty Trash

  5. Delete the following

rm -rf ~/.docker
sudo rm -f /Library/LaunchDaemons/com.docker.socket.plist
sudo rm -f /Library/LaunchDaemons/com.docker.vmnetd.plist
sudo rm -f /Library/PrivilegedHelperTools/com.docker.socket
sudo rm -f /Library/PrivilegedHelperTools/com.docker.vmnetd
  1. Restart your Mac
  2. Download the latest version of 4.37.2 from this page: https://docs.docker.com/desktop/release-notes/
  3. Open the DMG and re-install as normal

@HuyIT9898
Copy link

The only method that work for me after struggling a whole day is to downgrade it to [4.36.0] 🙏

@dalailomo
Copy link

I was able to get my Mac working again by doing the following:

  • NOTE: if you're stuck with the "Docker" is damaged message, popping up over and over, try emptying your Trash first, then restarting...
  1. Run the script as outlined in Malware detection prevents Docker Desktop to start #7527
  2. Kill any running Docker processes
  3. Move /Applications/Docker.app to trash (or delete it)
  4. Empty Trash
  5. Delete the following

rm -rf ~/.docker
sudo rm -f /Library/LaunchDaemons/com.docker.socket.plist
sudo rm -f /Library/LaunchDaemons/com.docker.vmnetd.plist
sudo rm -f /Library/PrivilegedHelperTools/com.docker.socket
sudo rm -f /Library/PrivilegedHelperTools/com.docker.vmnetd
6. Restart your Mac
7. Download the latest version of 4.37.2 from this page: https://docs.docker.com/desktop/release-notes/
8. Open the DMG and re-install as normal

this worked for me. thanks!

@stevenwh15
Copy link

I was able to get my Mac working again by doing the following:

  • NOTE: if you're stuck with the "Docker" is damaged message, popping up over and over, try emptying your Trash first, then restarting...
  1. Run the script as outlined in Malware detection prevents Docker Desktop to start #7527
  2. Kill any running Docker processes
  3. Move /Applications/Docker.app to trash (or delete it)
  4. Empty Trash
  5. Delete the following

rm -rf ~/.docker
sudo rm -f /Library/LaunchDaemons/com.docker.socket.plist
sudo rm -f /Library/LaunchDaemons/com.docker.vmnetd.plist
sudo rm -f /Library/PrivilegedHelperTools/com.docker.socket
sudo rm -f /Library/PrivilegedHelperTools/com.docker.vmnetd
6. Restart your Mac
7. Download the latest version of 4.37.2 from this page: https://docs.docker.com/desktop/release-notes/
8. Open the DMG and re-install as normal

This works for me too! Thanks alot

@Arndeverafter
Copy link

I was able to get my Mac working again by doing the following:

  • NOTE: if you're stuck with the "Docker" is damaged message, popping up over and over, try emptying your Trash first, then restarting...
  1. Run the script as outlined in Malware detection prevents Docker Desktop to start #7527
  2. Kill any running Docker processes
  3. Move /Applications/Docker.app to trash (or delete it)
  4. Empty Trash
  5. Delete the following

rm -rf ~/.docker
sudo rm -f /Library/LaunchDaemons/com.docker.socket.plist
sudo rm -f /Library/LaunchDaemons/com.docker.vmnetd.plist
sudo rm -f /Library/PrivilegedHelperTools/com.docker.socket
sudo rm -f /Library/PrivilegedHelperTools/com.docker.vmnetd
6. Restart your Mac
7. Download the latest version of 4.37.2 from this page: https://docs.docker.com/desktop/release-notes/
8. Open the DMG and re-install as normal

This is what worked for me after a whole day of running a bunch of commands from the internet.
Thank you very much

@ian-weir
Copy link

ian-weir commented Jan 9, 2025

Since I don't have sudo access on my machine a similar flow worked for me

  1. Kill and lingering docker processes via Activity Monitor
  2. Move /Applications/Docker.app to trash
  3. Empty Trash
  4. rm -rf ~/.docker
  5. Redownload latest version
  6. Open DMG and re-install

Thank you zarathustra323 for the tips!

@harishnreddy
Copy link
Author

Yes - Not quite sure what I did (it took a couple of attempts) ... but was able to get it running again.

  1. Did use the the 4.37.2 image (https://docs.docker.com/desktop/release-notes/)

  2. Did restart my machine

  3. Did run the script outlined in this thread Malware detection prevents Docker Desktop to start #7527

  4. Did run this set of commands as well.

rm -rf ~/.docker
sudo rm -f /Library/LaunchDaemons/com.docker.socket.plist
sudo rm -f /Library/LaunchDaemons/com.docker.vmnetd.plist
sudo rm -f /Library/PrivilegedHelperTools/com.docker.socket
sudo rm -f /Library/PrivilegedHelperTools/com.docker.vmnetd

  1. I may have done and said one or two other things as well.

But, I think I have this running again.

Thanks to those who commented.

@ursualexandr
Copy link

I was able to get my Mac working again by doing the following:

  • NOTE: if you're stuck with the "Docker" is damaged message, popping up over and over, try emptying your Trash first, then restarting...
  1. Run the script as outlined in Malware detection prevents Docker Desktop to start #7527
  2. Kill any running Docker processes
  3. Move /Applications/Docker.app to trash (or delete it)
  4. Empty Trash
  5. Delete the following

rm -rf ~/.docker
sudo rm -f /Library/LaunchDaemons/com.docker.socket.plist
sudo rm -f /Library/LaunchDaemons/com.docker.vmnetd.plist
sudo rm -f /Library/PrivilegedHelperTools/com.docker.socket
sudo rm -f /Library/PrivilegedHelperTools/com.docker.vmnetd
6. Restart your Mac
7. Download the latest version of 4.37.2 from this page: https://docs.docker.com/desktop/release-notes/
8. Open the DMG and re-install as normal

The only method that work for me! Better explanation then official documentation.

@luckydonald
Copy link

Image

What I'm wondering is what changed? Why did this come up now so randomly?
I never clicked any update button whatsoever.

@dhrim
Copy link

dhrim commented Jan 10, 2025

I was able to get my Mac working again by doing the following:

  • NOTE: if you're stuck with the "Docker" is damaged message, popping up over and over, try emptying your Trash first, then restarting...
  1. Run the script as outlined in Malware detection prevents Docker Desktop to start #7527
  2. Kill any running Docker processes
  3. Move /Applications/Docker.app to trash (or delete it)
  4. Empty Trash
  5. Delete the following

rm -rf ~/.docker
sudo rm -f /Library/LaunchDaemons/com.docker.socket.plist
sudo rm -f /Library/LaunchDaemons/com.docker.vmnetd.plist
sudo rm -f /Library/PrivilegedHelperTools/com.docker.socket
sudo rm -f /Library/PrivilegedHelperTools/com.docker.vmnetd
6. Restart your Mac
7. Download the latest version of 4.37.2 from this page: https://docs.docker.com/desktop/release-notes/
8. Open the DMG and re-install as normal

It works for me. Thank really.

@cdupuis cdupuis self-assigned this Jan 10, 2025
@cdupuis
Copy link

cdupuis commented Jan 10, 2025

The message "Docker" is damaged and can't be opened. You should move it to the Trash. usually refers to a broken and un- verifiable docker.dmg file. If you see this message, please delete the old DMG, empty the Trash, download the DMG again and try opening it again. We are investigating why this sometimes happens on certain versions of macOS.

Additionally make sure that you close all applications that could be using docker in the background, such as VSCode with the Docker Extension installed etc. Those applications continue to access parts of Docker Desktop while the installation/copy operation is underway.

@maapteh
Copy link

maapteh commented Jan 10, 2025

@luckydonald its just an error in the application itself (there is not malware injected). They fixed the application with new patch version. Just remove the old one and install the new one https://docs.docker.com/desktop/release-notes/#4372

@ewpreston
Copy link

Wow, really? What a mess. There has to be a better way of fixing this

@ewpreston
Copy link

@luckydonald its just an error in the application itself (there is not malware injected). They fixed the application with new patch version. Just remove the old one and install the new one https://docs.docker.com/desktop/release-notes/#4372

I tried. Got same error that it's damaged. Going to try the above remedies, but Docker, you need to do a better job here

@harishnreddy
Copy link
Author

Yeah - it sort of sucks and would be good to have a little more background from Docker on what happened.

But, follow the steps, which is primarily installing the new instance of Docker

4.37.2

At least as of yesterday, do not download from the main site, which I did a couple of times and it did not work.

@ewpreston
Copy link

So I've followed all the steps above, and finally got it to install (copy to the Applications folder). Ran the check.sh script which passed. But it won't start. I'll try rebooting again, but something is very not right. Running 14.7.2 (23H311) on an M3

@jzillmann
Copy link

  • Trashed Docker and redownloaded/installed it. Same problem.
  • Upgraded OSX (to 14.7.2). => docker process starting (but not Docker Desktop)
  • Trashed all those files mentioned above:
sudo rm -f /Library/LaunchDaemons/com.docker.socket.plist
sudo rm -f /Library/LaunchDaemons/com.docker.vmnetd.plist
sudo rm -f /Library/PrivilegedHelperTools/com.docker.socket
sudo rm -f /Library/PrivilegedHelperTools/com.docker.vmnetd

-Installed docker again, everything works!

@bsousaa
Copy link
Contributor

bsousaa commented Jan 11, 2025

@ewpreston make sure you don't have any old processes running. See detailed instructions at https://docs.docker.com/desktop/cert-revoke-solution/

@babz007
Copy link

babz007 commented Jan 12, 2025

  • I had to completely uninstall Docker using sudo rm /usr/local/bin/docker and manually remove all associated binaries.
  • Afterward, I reinstalled Docker using brew install --cask docker and successfully installed the latest version of the Docker app 4.37.2

everything works now!

@xc1427
Copy link

xc1427 commented Jan 15, 2025

I was able to get my Mac working again by doing the following:

  • NOTE: if you're stuck with the "Docker" is damaged message, popping up over and over, try emptying your Trash first, then restarting...
  1. Run the script as outlined in Malware detection prevents Docker Desktop to start #7527
  2. Kill any running Docker processes
  3. Move /Applications/Docker.app to trash (or delete it)
  4. Empty Trash
  5. Delete the following

rm -rf ~/.docker
sudo rm -f /Library/LaunchDaemons/com.docker.socket.plist
sudo rm -f /Library/LaunchDaemons/com.docker.vmnetd.plist
sudo rm -f /Library/PrivilegedHelperTools/com.docker.socket
sudo rm -f /Library/PrivilegedHelperTools/com.docker.vmnetd
6. Restart your Mac
7. Download the latest version of 4.37.2 from this page: https://docs.docker.com/desktop/release-notes/
8. Open the DMG and re-install as normal

+1. Me is Apple Silicon M1, Sonoma 14.4.1
After trying various methods, this works for me. I think the main point is to FIRST make sure to "purge" any trace in your system related to older version, REBOOT Your MacOS, then Reinstall.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests