
Macにdockerをインストール
2019-06-095 min read
目次
概要
Macにdockerをインストールします。
インストール
homebrewを使ってインストールします。
ターミナルから以下のコマンドで実行します。
$ brew install docker
==> Downloading https://homebrew.bintray.com/bottles/docker-18.09.6.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/ee/eefe44ffb39bc0de3c88c3ef5bd7fedee6aded52eb1c4b4d07dc94158ba18b16?__gda__=exp=1559051212~hmac=b57eebef763ab7889d4c8173ff7a62597
######################################################################## 100.0%
==> Pouring docker-18.09.6.mojave.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completions have been installed to:
/usr/local/share/zsh/site-functions
==> Summary
? /usr/local/Cellar/docker/18.09.6: 8 files, 72.3MB
$ brew cask install docker
Updating Homebrew...
==> Satisfying dependencies
==> Downloading https://download.docker.com/mac/stable/31259/Docker.dmg
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'docker'.
==> Installing Cask docker
==> Moving App 'Docker.app' to '/Applications/Docker.app'.
? docker was successfully installed!
$ docker -v
Docker version 18.09.2, build 6247962
$ docker version
Client: Docker Engine - Community
Version: 18.09.2
API version: 1.39
Go version: go1.10.8
Git commit: 6247962
Built: Sun Feb 10 04:12:39 2019
OS/Arch: darwin/amd64
Experimental: false
Server: Docker Engine - Community
Engine:
Version: 18.09.2
API version: 1.39 (minimum version 1.12)
Go version: go1.10.6
Git commit: 6247962
Built: Sun Feb 10 04:13:06 2019
OS/Arch: linux/amd64
Experimental: false
$ docker-compose -v
docker-compose version 1.23.2, build 1110ad01
hellow world してみます。
docker run hello-world
Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:
1. The Docker client contacted the Docker daemon.
2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
(amd64)
3. The Docker daemon created a new container from that image which runs the
executable that produces the output you are currently reading.
4. The Docker daemon streamed that output to the Docker client, which sent it
to your terminal.
To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash
Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/
For more examples and ideas, visit:
https://docs.docker.com/get-started/
問題なさそうです。
Recommends
Macにdockerをインストール
2019-06-09
homebrew-core is a shallow clone. 対処法
2020-12-19
Macでも利用できるDBクライアント MySQL PostgreSQL Oracle など
2019-12-21
エンジニアなMacBookのセットアップ 開発環境の構築
2019-07-05
[Mac]ipコマンドの導入[iproute2mac]
2022-01-16
AWS Amplify で コンテナベースのデプロイを行い REST API を構築
2021-07-26
tracerouteコマンドでネットワークの経路を洗い出す
2021-10-30
Homebrew で php7.4 + Xdebug をインストール
2021-02-01
Ansible で Docker に LAMP環境を構築するハンズオンを作った
2020-01-12
DockerでMySQL5.1.73を利用する。docker-composeから起動
2019-12-19
fswatch rsync unison を使ってリアルタイムで同期する
2019-11-03
fswatchで変更されたファイルを監視する
2019-07-07
多段SSHの設定 踏み台経由
2019-06-24
docker コンテナとホストでディレクトリをマウントしてファイル共有
2019-06-10
dockerでオリジナルのイメージを作成 外部出力まで
2019-06-09
New Posts
[AWS CDK]ECS FargateでNestJSで作成したRESTfull APIデ...
2022-05-24
[AWS CDK]S3 CloudFront OAI Route53 構成 で NextJ...
2022-05-23
[CDK]SNS+SQS+DynamoDBでBounceとComplaint情報を収集する...
2022-04-11
[AmazonSES] node.js と ejs を利用してEメールを送信する
2022-04-09
GatsbyからNext.jsへのサイト移行
2022-04-04
[AWS CDK] Lambda で S3 オブジェクトを読み書きするStackの構築
2022-03-18
[AWS CDK] S3 + CloudFrontの構築とOriginAccessIden...
2022-03-09
[AWS CDK] Bastion(踏み台)構築。SSMとEC2InstanceConne...
2022-03-06
[AWS CDK] Cognito を構築
2022-03-04
AWS CDK v2 でVPC上にAPI Gateway + Lambda + RDS +...
2022-02-28
javascriptで累積和を解く
2022-02-27
AWS Amplify で monorepo を導入し 単一リポジトリで複数プロジェクトを...
2022-02-25
AWS CDK v2 で Lambda関数のデプロイ
2022-02-23
NextJSでDevToysのようなものを作成した
2022-02-22
JSで動的計画法を利用して部分和問題を解く
2022-02-20
Hot posts!
Proxy環境下でcurlを実行する
2019-12-07
OpenCVのMatのタイプ一覧表
2018-11-25
Macでも利用できるDBクライアント MySQL PostgreSQL Oracle など
2019-12-21
TablePlusを使ってみる。シンプルでモダンなSQLクライアントツール
2018-09-30
DBクライアントツールはDBeaverをおすすめしたい
2021-03-08
AWS S3のアクセスキーIDとシークレットアクセスキーの取得 作業用ユーザを作成
2019-06-12
AtCoderで初めて色がつくまでの話(茶色) レートが中々上がらなかった原因
2018-11-25
CentOS8でEPELとPowerToolsリポジトリの有効化
2020-11-30
Macでターミナルからポートスキャンを行う方法。
2018-12-09
Python + OpenCVのfillConvexPolyで複雑なポリゴンを描画する
2018-11-27
Date
▶︎
2022 年 (23)
▶︎
2021 年 (40)
▶︎
2020 年 (30)
▶︎
2019 年 (90)
▶︎
2018 年 (89)
▶︎
2017 年 (1)
Tags
Author