Resolving "Docker.app Will Damage Your Computer" Warning on macOS
Problem Statement
When launching Docker Desktop on macOS (both Intel and Apple Silicon), you may encounter a warning claiming: "Docker.app" will damage your computer. You should move it to the Bin
. This alert is caused by Docker Inc. revoking a signing certificate for the com.docker.vmnetd
component, triggering macOS security warnings. The issue often coincides with installing security tools like Zscaler, but occurs independently after Docker's certificate revocation.
Recommended Solutions
1. Reinstall Latest Docker Version (Official Fix)
Updating to Docker Desktop v4.37.2+ (released January 2025) resolves the certificate issue.
Steps:
- Uninstall existing Docker:bash
brew uninstall --cask docker --force # Brew users
- Non-Brew users: Drag
Docker.app
toBin
.
- Non-Brew users: Drag
- Remove leftover files:bash
sudo rm -rf /Library/PrivilegedHelperTools/com.docker.* sudo rm /usr/local/bin/docker* # Clean Homebrew binary conflicts
- Download the latest installer from Docker’s official site.
- Reinstall:
- Mount the downloaded
.dmg
, dragDocker.app
to/Applications
. - If using installer: Run:bash
sudo /Volumes/Docker/Docker.app/Contents/MacOS/install
- Mount the downloaded
2. Post-Reinstall Certificate Verification
Ensure the new certificate is valid:
# Download verification script
curl -fLO https://github.com/docker/for-mac/files/18378854/check.sh.txt
mv check.sh.txt check.sh && chmod +x check.sh
# Run check
./check.sh /Applications/Docker.app/Contents/Library/LaunchServices/com.docker.vmnetd
Expected Output:
com.docker.vmnetd is signed with a correct certificate
3. Persistent Post-Reinstall Errors
If Docker fails to start after reinstallation ("Docker is damaged" alert), reset privileged tools:
# Ensure Docker processes are stopped
sudo pkill '[dD]ocker'
# Remove revoked helper binaries
sudo launchctl remove com.docker.vmnetd
sudo rm -f /Library/PrivilegedHelperTools/com.docker.vmnetd
sudo rm -f /Library/PrivilegedHelperTools/com.docker.socket
# Reinstall core binaries from the fixed app
sudo cp /Applications/Docker.app/Contents/Library/LaunchServices/com.docker.vmnetd /Library/PrivilegedHelperTools/
sudo cp /Applications/Docker.app/Contents/MacOS/com.docker.socket /Library/PrivilegedHelperTools/
Restart your Mac afterward.
Prevention Tips
- Avoid Moving Files to Bin During Alert
MovingDocker.app
to Bin may cause incomplete removal—use proper uninstall steps. - Prefer Official Installers Over Homebrew
Docker's direct download avoids path conflicts with Homebrew. - Check
.docker/config.json
Remove"credsStore": "desktop"
if credentials cause issues.
WARNING
Never run unreviewed scripts from the internet. Audit code snippets (like the check.sh
script) before execution.
Root Cause Explanation
Apple's Gatekeeper blocks applications with revoked developer certificates. Docker revoked a certificate for com.docker.vmnetd
, a network helper tool, causing macOS to flag the app. The fix replaces this component and updates the signing certificate in newer releases.
For ongoing issues, consult Docker's GitHub: