2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Dockerがmalware扱いされて起動できなくなる事象の解決方法

Posted at

ある日、Dockerを起動しようとすると
Dockerがマルウェア扱いされて、延々とエラーアラートが表示される地獄状態に!😭
[2025/01/14時点]

色々調べていると1月8日以降に発生した事象らしい😔
一応、解決できたので、解決手順を以下にメモしておきます✍️

まずcheck.shという空のファイルを作成し
ファイル管理者権限を変更 参考

Air:Docker root# chmod 755 check.sh

そして以下のスクリプトをcheck.shにペースト

#!/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/

そしてcheck.shを実行

Air Docker % ./check.sh 
Stopping Docker...
Password:
Stopping com.docker.vmnetd service...
Stopping com.docker.socket service...
Removing com.docker.vmnetd binary...
Removing com.docker.socket binary...
Install new binaries...
cp: /Applications/Docker.app/Contents/Library/LaunchServices/com.docker.vmnetd: No such file or directory
cp: /Applications/Docker.app/Contents/MacOS/com.docker.socket: No such file or directory

これでエラーアラートウィンドウは表示されなくなり
Dockerも正常に戻りました🤗

以上です🙇‍♂️

解決法の記事:acassioaraujo様

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?