3
0

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"は、応答しないため開けません。」の解決策

Posted at

Dockerが開かない...

 こんにちは。駆け出しエンジニアです。とある日dockerを開こうとしたら、下図のような警告が出ちゃました。

スクリーンショット 2025-02-23 11.25.22.png

Dockerを完全削除し再インストールしても変わらず...

解決策

Docker公式の記事の手順通りにやれば解決できました!

以下は、公式サイトから引用した手順です。

警告
以下のコマンドがどのように動作しているか私自身理解していないため、自己責任でお願いします。

手順1. Docker Desktopを終了し、アクティビティモニタを使って残りのdockerプロセスが実行されていないことを確認する。

手順2. 以下のコマンドを実行する

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

手順3. Dockerデスクトップを再起動する

※これでもうまくいかない場合は、リリースノートから現在サポートされているリリースのいずれかをダウンロードし、アプリケーションを再インストールして、最後にステップ2を再度実行してください。

最後に

 正直、上記コードの内容はあまり理解していませんので、なぜ直ったかはわからないです。今後は環境構築についても学んでいこうと考えております。

【参考記事】
【Docker公式】https://github.com/docker/for-mac/issues/7527

3
0
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
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?