Docker is damaged and can’t be opened. You should move it to the Bin.
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.
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
Same here
Same here. It keeps popping up even I clicked on the 'Cancel' button. Tried this link but it didn't work for me.
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...
-
Run the script as outlined in #7527
-
Kill any running Docker processes
-
Move /Applications/Docker.app to trash (or delete it)
-
Empty Trash
-
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
- Restart your Mac
- Download the latest version of 4.37.2 from this page: https://docs.docker.com/desktop/release-notes/
- Open the DMG and re-install as normal
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...
- Run the script as outlined in Malware detection prevents Docker Desktop to start #7527
- Kill any running Docker processes
- Move /Applications/Docker.app to trash (or delete it)
- Empty Trash
- 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!
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...
- Run the script as outlined in Malware detection prevents Docker Desktop to start #7527
- Kill any running Docker processes
- Move /Applications/Docker.app to trash (or delete it)
- Empty Trash
- 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!
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...
- Run the script as outlined in Malware detection prevents Docker Desktop to start #7527
- Kill any running Docker processes
- Move /Applications/Docker.app to trash (or delete it)
- Empty Trash
- 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)
Plus 1 on the solution! Thank you!
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...
- Run the script as outlined in Malware detection prevents Docker Desktop to start #7527
- Kill any running Docker processes
- Move /Applications/Docker.app to trash (or delete it)
- Empty Trash
- 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 remove my docker then reinstall.now, I can open docker.
but it show 'Docker Engine stopped"
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.
I ended up just installing the special released new version which fixed the rootcause. See https://docs.docker.com/desktop/release-notes/#4372
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 followingrm -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
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
dockerin 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.
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.dmginstaller - 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
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...
- Run the script as outlined in Malware detection prevents Docker Desktop to start #7527
- Kill any running Docker processes
- Move /Applications/Docker.app to trash (or delete it)
- Empty Trash
- 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.
If the pop-up persists after following all the clean-up steps, empty the trash. Id like that 30 minutes of my life back
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...
- Run the script as outlined in Malware detection prevents Docker Desktop to start #7527
- Kill any running Docker processes
- Move /Applications/Docker.app to trash (or delete it)
- Empty Trash
- 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~
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.dmginstaller- 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.
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
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...
- Run the script as outlined in Malware detection prevents Docker Desktop to start #7527
- Kill any running Docker processes
- Move /Applications/Docker.app to trash (or delete it)
- Empty Trash
- 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.
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...
- Run the script as outlined in Malware detection prevents Docker Desktop to start #7527
- Kill any running Docker processes
- Move /Applications/Docker.app to trash (or delete it)
- Empty Trash
- 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):
- UNCHECK "reopen windows after restarting" my Mac
- Install Mac OS update 15.2
Maybe it'll help someone else. 🤷♂️
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...
- Run the script as outlined in Malware detection prevents Docker Desktop to start #7527
- Kill any running Docker processes
- Move /Applications/Docker.app to trash (or delete it)
- Empty Trash
- 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!
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.
@bskinner cleared your trash? I was in a spiral till I did that
@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.
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.
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
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...
- Run the script as outlined in Malware detection prevents Docker Desktop to start #7527
- Kill any running Docker processes
- Move /Applications/Docker.app to trash (or delete it)
- Empty Trash
- 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