for-mac icon indicating copy to clipboard operation
for-mac copied to clipboard

Docker is damaged and can’t be opened. You should move it to the Bin.

Open Mikhail-88 opened this issue 11 months ago • 29 comments

Description

After updating the version of macOS to Ventura 13.7.2 - Docker stopped working, I tried installing different versions of Docker (last 4.37.2 and older 4.29.0), but none of them start.

Image

Reproduce

showing an error when starting the laptop

Expected behavior

No response

docker version

I can't find out because I don't remember, and the program doesn't open.

docker info

I can't find out because I don't remember, and the program doesn't open.

Diagnostics ID

I can't find out because I don't remember, and the program doesn't open.

Additional Info

program doesn't open at all

Mikhail-88 avatar Jan 09 '25 14:01 Mikhail-88

Same here

janhelwich avatar Jan 09 '25 14:01 janhelwich

Same here. It keeps popping up even I clicked on the 'Cancel' button. Tried this link but it didn't work for me.

haoxi911 avatar Jan 09 '25 15:01 haoxi911

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 #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

zarathustra323 avatar Jan 09 '25 15:01 zarathustra323

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

Confirmed this works! Thanks a lot @zarathustra323!

haoxi911 avatar Jan 09 '25 15:01 haoxi911

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

I tried different options before, but your combination and strict execution of the sequence of points worked. You made my day @zarathustra323!

Mikhail-88 avatar Jan 09 '25 16:01 Mikhail-88

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

Unfortunately these steps did not work for me. I am still receiving the "Docker is damaged" message when re-installing (during the verification stage)

russdot avatar Jan 09 '25 20:01 russdot

Plus 1 on the solution! Thank you!

clarkj99 avatar Jan 09 '25 20:01 clarkj99

This works for me. Thanks.

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

alagiesellu avatar Jan 10 '25 00:01 alagiesellu

i remove my docker then reinstall.now, I can open docker. but it show 'Docker Engine stopped" Image

ChunTsungHsiao avatar Jan 10 '25 03:01 ChunTsungHsiao

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.

cdupuis avatar Jan 10 '25 07:01 cdupuis

I ended up just installing the special released new version which fixed the rootcause. See https://docs.docker.com/desktop/release-notes/#4372

maapteh avatar Jan 10 '25 09:01 maapteh

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](https://github.com/docker/for-mac/issues/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

Works for me

alex-zabyshny avatar Jan 10 '25 18:01 alex-zabyshny

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.

Closing VS Code and re-installing the latest docker-desktop worked for me.

MZSHAN avatar Jan 13 '25 04:01 MZSHAN

If you still experience installation errors after trying the recommended steps above you can try the following steps:

  • Start by trying the process described above
  • Download the latest Docker.dmg installer
  • Run the following commands to install:
softwareupdate --install-rosetta
sudo hdiutil attach Docker.dmg
sudo /Volumes/Docker/Docker.app/Contents/MacOS/install
sudo hdiutil detach /Volumes/Docker

jongracecox avatar Jan 13 '25 16:01 jongracecox

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

Unfortunately these steps did not work for me. I am still receiving the "Docker is damaged" message when re-installing (during the verification stage)

Just FYI, "Restart your Mac" step is necessary for me to make it work.

alex621 avatar Jan 14 '25 02:01 alex621

If the pop-up persists after following all the clean-up steps, empty the trash. Id like that 30 minutes of my life back

cgmckeever-orbis avatar Jan 15 '25 02:01 cgmckeever-orbis

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

works for me!!!, thanks~

Lyzin avatar Jan 15 '25 07:01 Lyzin

If you still experience installation errors after trying the recommended steps above you can try the following steps:

  • Start by trying the process described above
  • Download the latest Docker.dmg installer
  • Run the following commands to install:

softwareupdate --install-rosetta sudo hdiutil attach Docker.dmg sudo /Volumes/Docker/Docker.app/Contents/MacOS/install sudo hdiutil detach /Volumes/Docker

This has worked for me without deleting all of my containers first, Docker version 4.37.2 on M2 Sonoma.

Worth trying this before committing to destroying your existing work.

tsirilson avatar Jan 15 '25 08:01 tsirilson

Works for me!

Thank you so much @zarathustra323, fellow nietzsche enjoyer 😎

maxdmayhew avatar Jan 15 '25 19:01 maxdmayhew

Like @tsirilson I was able to get mine running without deleting anything. I also didn't run the script in https://github.com/docker/for-mac/issues/7531#issuecomment-2580595610

I just did the following with the latest Docker.dmg from https://docs.docker.com/desktop/release-notes/#4372 :

softwareupdate --install-rosetta
sudo hdiutil attach Docker.dmg
sudo /Volumes/Docker/Docker.app/Contents/MacOS/install
sudo hdiutil detach /Volumes/Docker

tomisme avatar Jan 16 '25 02:01 tomisme

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

Yes this worked, for me specifically the emptying your Trash step. I have tried everything else before i found this post, and after emptying the trash it never pops out again.

xiaotojohn avatar Jan 20 '25 01:01 xiaotojohn

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

Unfortunately these steps did not work for me. I am still receiving the "Docker is damaged" message when re-installing (during the verification stage)

After trying nearly every iteration I can think of I managed to get Docker installed and running (without losing any data). Unfortunately there are 2 things conflated together that I am unable to determine which helped (or both):

  1. UNCHECK "reopen windows after restarting" my Mac
  2. Install Mac OS update 15.2

Maybe it'll help someone else. 🤷‍♂️

russdot avatar Jan 20 '25 18:01 russdot

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

Amazing! It worked great on my end. Thank you!

francisaguilar21 avatar Jan 21 '25 03:01 francisaguilar21

Still hitting this issue on macOS 15.3 (24D60) and Docker 4.37.2 running on a MacBook Pro M1 Max. Followed the steps in both #7527 and the above comment with no change despite multiple attempts. macOS still displays the below error message continually until the Docker app is removed from the application folder.

Running the check.sh script linked in #7527 reports no issues.

Image

bskinner avatar Jan 30 '25 15:01 bskinner

@bskinner cleared your trash? I was in a spiral till I did that

cgmckeever-orbis avatar Jan 30 '25 15:01 cgmckeever-orbis

@bskinner cleared your trash? I was in a spiral till I did that

I'm relatively sure I did, but I'll give it another go once I get a chance & report back.

Update: That did it! Made sure I emptied the trash before restarting & reinstalling Docker and it seems to be working as expected now. Thank you.

bskinner avatar Jan 30 '25 16:01 bskinner

I have tried every possible solution highlighted in this thread but I always end up with the same result:

"You can't open the application "Docker" because it may be damaged or incomplete."

I have tried downloading the Docker.dmg file with different browsers, all processes are shutdown including vscode, trash is empty, etc.

Any other suggestions or possible work arounds to attempt?

I updated my OS to Sequoia 15.3.1 (from another minor - maybe 15.1 or 15.2) when I initially started having the "malware" error after having a working Docker Desktop with the previous OS minor. That error eventually became the damaged or incomplete error 😢

After installing Docker in any way (e.g. using the .dmg file) I try to open the application, it shows the "open" prompt, I click open and nothing happens. Trying to open the application again then shows the error.

I'm having a M1 chip.

hilleer avatar Feb 21 '25 07:02 hilleer

I have tried few steps and finally resolved by running a previous version of Docker Desktop.

Here are the steps: https://github.com/docker/for-mac/issues/7598#issuecomment-2683920876

IntelligentIndia7 avatar Feb 26 '25 05:02 IntelligentIndia7

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

HorcruxAshu avatar Mar 25 '25 05:03 HorcruxAshu