Skip to content

Commit 1a3086b

Browse files
committed
ENGDOCS-2372
1 parent 5526949 commit 1a3086b

File tree

1 file changed

+134
-0
lines changed

1 file changed

+134
-0
lines changed
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
---
2+
description: Learn how to resolve issues affecting macOS users of Docker Desktop, including startup problems and false malware warnings, with upgrade, patch, and workaround solutions.
3+
keywords: Docker desktop, fix, mac, troubleshooting, macos, false malware warning, patch, upgrade solution
4+
title: Resolve the recent Docker Desktop issue on macOS
5+
linkTitle: Fix startup issue for Mac
6+
weight: 220
7+
---
8+
9+
This guide provides steps to address a recent issue affecting some macOS users of Docker Desktop. The issue may prevent Docker Desktop from starting and in some cases, may also trigger inaccurate malware warnings.
10+
11+
This issue arose due to the rotation of an old signing certificate for macOS, which unexpectedly caused disruptions for users with existing Docker Desktop installations. For more details about the incident, see the [blog post](https://www.docker.com/blog/incident-update-docker-desktop-for-mac/).
12+
13+
> [!NOTE]
14+
>
15+
> Docker Desktop versions 4.28 and earlier are not impacted by this issue.
16+
17+
## Available solutions
18+
19+
There are a few options available depending on your situation:
20+
21+
### Upgrade to Docker Desktop version 4.37.2 (recommended)
22+
23+
The recommended way is to upgrade to the latest Docker Desktop version which is version 4.37.2.
24+
25+
If possible, update directly through the app. If not, and you’re still seeing the malware pop-up, follow the steps below:
26+
27+
1. Kill the Docker process that cannot start properly:
28+
```console
29+
$ sudo launchctl bootout system/com.docker.vmnetd 2>/dev/null || true
30+
$ sudo launchctl bootout system/com.docker.socket 2>/dev/null || true
31+
32+
$ sudo rm /Library/PrivilegedHelperTools/com.docker.vmnetd || true
33+
$ sudo rm /Library/PrivilegedHelperTools/com.docker.socket || true
34+
35+
$ ps aux | grep docker | awk '{print $2}' | sudo xargs kill -9 2>/dev/null
36+
```
37+
38+
2. Make sure the malware pop-up is permanently closed.
39+
40+
3. [Download and install version 4.37.2](/manuals/desktop/release-notes.md#4372).
41+
42+
4. Launch Docker Desktop. A privileged pop-up message displays after 5 to 10 seconds.
43+
44+
5. Enter your password.
45+
46+
You should now see the Docker Desktop Dashboard.
47+
48+
### Install a patch if you have version 4.34 - 4.36
49+
50+
If you can’t upgrade to the latest version and you’re seeing the malware pop-up, follow the steps below:
51+
52+
1. Kill the Docker process that cannot start properly:
53+
```console
54+
$ sudo launchctl bootout system/com.docker.vmnetd 2>/dev/null || true
55+
$ sudo launchctl bootout system/com.docker.socket 2>/dev/null || true
56+
57+
$ sudo rm /Library/PrivilegedHelperTools/com.docker.vmnetd || true
58+
$ sudo rm /Library/PrivilegedHelperTools/com.docker.socket || true
59+
60+
$ ps aux | grep docker | awk '{print $2}' | sudo xargs kill -9 2>/dev/null
61+
```
62+
63+
2. Make sure the malware pop-up is permanently closed.
64+
65+
3. [Download and install the patched installer](/manuals/desktop/release-notes.md) that matches your current base version. For example if you have version 4.36.0, install 4.36.1.
66+
67+
4. Launch Docker Desktop. A privileged pop-up message displays after 5 to 10 seconds.
68+
69+
5. Enter your password.
70+
71+
You should now see the Docker Desktop Dashboard.
72+
73+
### Wait for a patch for versions 4.32 - 4.33
74+
75+
For versions 4.32 - 4.33, a patch fix is in progress. If you need an immediate solution, you can use the following workaround:
76+
77+
1. Kill the Docker process that cannot start properly:
78+
```console
79+
$ sudo launchctl bootout system/com.docker.vmnetd 2>/dev/null || true
80+
$ sudo launchctl bootout system/com.docker.socket 2>/dev/null || true
81+
82+
$ sudo rm /Library/PrivilegedHelperTools/com.docker.vmnetd || true
83+
$ sudo rm /Library/PrivilegedHelperTools/com.docker.socket || true
84+
85+
$ ps aux | grep docker | awk '{print $2}' | sudo xargs kill -9 2>/dev/null
86+
```
87+
88+
2. Download and install a re-signed installer matching your exact version of Docker Desktop from the [Release notes](/manuals/desktop/release-notes.md).
89+
90+
3. Install new binaries:
91+
92+
```console
93+
$ sudo cp /Applications/Docker.app/Contents/Library/LaunchServices/com.docker.vmnetd /Library/PrivilegedHelperTools/
94+
$ sudo cp /Applications/Docker.app/Contents/MacOS/com.docker.socket /Library/PrivilegedHelperTools/
95+
```
96+
97+
4. Launch Docker Desktop. A privileged pop-up message displays after 5 to 10 seconds.
98+
99+
5. Enter your password.
100+
101+
You should now see the Docker Desktop Dashboard.
102+
103+
## MDM script
104+
105+
If you are an IT administrator, you can use the following script as a workaround for your developers if they have a re-signed version of Docker Desktop version 4.35 or later.
106+
107+
```console
108+
#!/bin/bash
109+
110+
# Stop the docker services
111+
echo "Stopping Docker..."
112+
sudo pkill [dD]ocker
113+
114+
# Stop the vmnetd service
115+
echo "Stopping com.docker.vmnetd service..."
116+
sudo launchctl bootout system /Library/LaunchDaemons/com.docker.vmnetd.plist
117+
118+
# Stop the socket service
119+
echo "Stopping com.docker.socket service..."
120+
sudo launchctl bootout system /Library/LaunchDaemons/com.docker.socket.plist
121+
122+
# Remove vmnetd binary
123+
echo "Removing com.docker.vmnetd binary..."
124+
sudo rm -f /Library/PrivilegedHelperTools/com.docker.vmnetd
125+
126+
# Remove socket binary
127+
echo "Removing com.docker.socket binary..."
128+
sudo rm -f /Library/PrivilegedHelperTools/com.docker.socket
129+
130+
# Install new binaries
131+
echo "Install new binaries..."
132+
sudo cp /Applications/Docker.app/Contents/Library/LaunchServices/com.docker.vmnetd /Library/PrivilegedHelperTools/
133+
sudo cp /Applications/Docker.app/Contents/MacOS/com.docker.socket /Library/PrivilegedHelperTools/
134+
```

0 commit comments

Comments
 (0)