Created
January 28, 2025 07:59
-
-
Save tejiriaustin/826236fca61bfa1f0fd6ea50d8589407 to your computer and use it in GitHub Desktop.
This fixes the com.docker.vmnetd issue
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Stop the docker services | |
echo "Stopping Docker..." | |
sudo pkill '[dD]ocker' | |
# Stop the vmnetd service | |
echo "Stopping com.docker.vmnetd service..." | |
sudo launchctl bootout system /Library/LaunchDaemons/com.docker.vmnetd.plist | |
# Stop the socket service | |
echo "Stopping com.docker.socket service..." | |
sudo launchctl bootout system /Library/LaunchDaemons/com.docker.socket.plist | |
# Remove vmnetd binary | |
echo "Removing com.docker.vmnetd binary..." | |
sudo rm -f /Library/PrivilegedHelperTools/com.docker.vmnetd | |
# Remove socket binary | |
echo "Removing com.docker.socket binary..." | |
sudo rm -f /Library/PrivilegedHelperTools/com.docker.socket | |
# Install new binaries | |
echo "Install new binaries..." | |
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/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment