LoginSignup
3
5

More than 1 year has passed since last update.

Homebrewを使用してDockerをインストールする

Posted at

Goal

M1チップ搭載のMacBook AirにHomebrewを使用してDockerをインストールする手順を示します。

References

Pre-Requisites

この文書の手順は、次の環境で実施し、動作を確認しました。

  • MacBook Air (M1, 2020)
  • macOS Monterey 12.0.1
  • zsh 5.8
  • Xcode 13.2.1
    • Command Line Tools for Xcode 13.2.0.0.1 (Dec 3, 2021)
  • Homebrew 3.3.9

How To

ターミナルを開きます。

Dockerをインストールするため、次のコマンドを実行します。

% brew install --cask docker

Finderでアプリケーションを開き、追加された"Docker"を起動します。

Dockerのバージョンを確認するため、次のコマンドを実行します。

% docker version
Client:
 Cloud integration: v1.0.22
 Version:           20.10.11
 API version:       1.41
 Go version:        go1.16.10
 Git commit:        dea9396
 Built:             Thu Nov 18 00:36:09 2021
 OS/Arch:           darwin/arm64
 Context:           default
 Experimental:      true

Server: Docker Engine - Community
 Engine:
  Version:          20.10.11
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.9
  Git commit:       847da18
  Built:            Thu Nov 18 00:34:44 2021
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.4.12
  GitCommit:        7b11cfaabd73bb80907dd23182b9347b4245eb5d
 runc:
  Version:          1.0.2
  GitCommit:        v1.0.2-0-g52b36a2
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0
3
5
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
5