LoginSignup
2
2

More than 1 year has passed since last update.

Mac 向けDocker をHomebrewでインストールしようとしたらつまづいた話

Posted at

Mac 向け Docker を Homebrewでインストールしようとしたらつまづいて、解決したので共有します。

以下のコマンドを実行してから、

$ brew install docker

次のコマンドを実行したところ、

NG
$ brew cask install docker

以下のエラーになりました。

Error: `brew cask` is no longer a `brew` command. Use `brew <command> --cask` instead.

以下のサイトで調べたところ、

①caskコマンドの使い方が変更になった
ようです。

旧) $ brew cask install xxx

新) $ brew install xxx --cask

なので、

OK
$ brew install docker --cask

としたら、上記のエラーは出なくなりました。

また上記のコマンドを実行中、別の以下のエラーが出ました。

Error: It seems there is already a Binary at ‘/usr/local/share/zsh/site-functions/_docker’.

以下のサイトで調べたところ、

原因は、先にbrew install dockerをしていたからです。

解決方法は、

$ brew remove docker

をしてから

$ brew install --cask docker

を行うことで、無事dockerをインストールできました。

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