Skip to content

Instantly share code, notes, and snippets.

@tejiriaustin
Created January 28, 2025 07:59
Show Gist options
  • Save tejiriaustin/826236fca61bfa1f0fd6ea50d8589407 to your computer and use it in GitHub Desktop.
Save tejiriaustin/826236fca61bfa1f0fd6ea50d8589407 to your computer and use it in GitHub Desktop.
This fixes the com.docker.vmnetd issue
#!/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