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

HomebrewでDocker Desktopをインストールする際の注意点

0
Posted at

はじめに

本記事では、HomebrewでDocker Desktopをインストールする際の手順について共有します。ある落とし穴にハマってしまったので記事化しようと思いました。

前提

Mac book Pro M4
Homebrew 4.6.7

エラー

Docker Desktopが必要になったので、いつも通りHomebrewでインストールを試みました。
GUIアプリのインストール時に--caskオプションは省略できていたので、今回もオプションを除きました。(実はこれが落とし穴でした。その理由は後述します)

brew install docker

無事インストールが完了したので、いざdockerを使おうとすると下記エラーが出ました。docker deamonが立ち上がっていない、というエラーです。

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running

原因

結論、Docker Desktopのインストールが正確にできていなかった事が原因でした。私が最初に実行したのは、Docker CLIをインストールする際のコマンドでした。

Docker Desktopをインストールする際は下記が正しいです。

brew install --cask docker

参考文献

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