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?

More than 3 years have passed since last update.

Mac OS X (Big Sur)にdockerをインストールする

Last updated at Posted at 2021-06-01
1 / 6

はじめに

多くの方が書かれていますが、記事が古いため書いてる通りにやっても上手くいかない事があります。

なので、振り返られるように記事にしておきます。


Dockerのインストール

以下のコマンドでインストールします。

$ brew install docker --cask

インストール中のメッセージ。
長らくHomebrewをアップデートしてないのでErrorが出ていますがインストールは出来ました。

Error: 
  homebrew-core is a shallow clone.
To `brew update`, first run:
  git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
This command may take a few minutes to run due to the large size of the repository.
This restriction has been made on GitHub's request because updating shallow
clones is an extremely expensive operation due to the tree layout and traffic of
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you
automatically to avoid repeatedly performing an expensive unshallow operation in
CI systems (which should instead be fixed to not use shallow clones). Sorry for
the inconvenience!
==> Downloading https://desktop.docker.com/mac/stable/amd64/61853/Docker.dmg
Already downloaded: /Users/Masaaki_Murakami/Library/Caches/Homebrew/downloads/f47fc0605c8d59cc9f5232206dec8ea7d11e3d502dea4dad960e0551ccb10c97--Docker.dmg
==> Installing Cask docker

==> Moving App 'Docker.app' to '/Applications/Docker.app'
🍺  docker was successfully installed!


記事によっては以下のように書いていますが、この方法はBig Surでは使えないそうです。

$ brew cask install docker


インストールが無事終了したらバージョン確認。
(以下は2021.06.01時点でのバージョン番号)

$ docker --version
Docker version 20.10.5, build 55c4c88
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?