[docker] com.docker.vmnetd will danmage your computer 오류

오류 메시지:
com.docker.vmnetd will danmage your computer
com.docker.vmnetd 사용자의 컴퓨터를 손상시킵니다

상황:
25.01.10 컴퓨터 재부팅 후 도커 실행안됨

환경:
mac M1칩

해결:

  1. 최신버전 설치
    https://docs.docker.com/desktop/release-notes/
  2. 최신버전 설치후에도 동일한 문제 발생시 아래 코드 진행
  3. 도커 재시작
#!/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/

참조:
https://github.com/docker/for-mac/issues/7527