from Hacker News

Mac is detecting Docker as a malware and keeping it from starting

by mfru on 3/19/25, 9:36 PM with 3 comments

  • by Refalm on 3/19/25, 10:30 PM

    Reminds me when I wrote this script to solve Docker's weird thing it does with virtualization on macOS sometimes. You need to completely remove anything Docker ,reinstall it, then shuffle some files around.

    ```

    brew remove docker

    brew remove docker-compose

    brew remove docker-completion

    brew remove docker-buildx

    brew remove --cask docker

    brew install --cask docker --force

    sudo pkill '[dD]ocker'

    sudo launchctl bootout system /Library/LaunchDaemons/com.docker.vmnetd.plist

    sudo launchctl bootout system /Library/LaunchDaemons/com.docker.socket.plist

    sudo rm -f /Library/PrivilegedHelperTools/com.docker.vmnetd

    sudo rm -f /Library/PrivilegedHelperTools/com.docker.socket

    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/

    ```

  • by lbourdages on 3/19/25, 10:34 PM

    Missing from the title is the fact that this happened in early January.

    I thought it referred to a repeat incident, but no, it's the same one that has long been fixed.

  • by randomNumber7 on 3/19/25, 9:46 PM

    When you want vendor lockin docker seems counter productive.