docker上で開発環境を作りたいと思い、まずdockerをmacに入れたいと思います。

ここではhomebrewを使用し構築します。

1.dockerを探す。

homebrewのsearchコマンドでdockerを探します。

$brew search docker
boot2docker                              homebrew/versions/boot2docker141
docker                                   homebrew/versions/boot2docker162
docker-compose                           homebrew/versions/docker133
docker-machine                           homebrew/versions/docker141
docker-machine-driver-xhyve              homebrew/versions/docker150
docker-machine-parallels                 homebrew/versions/docker162
docker-swarm                             homebrew/versions/docker171
homebrew/versions/boot2docker133
homebrew/emacs/dockerfile-mode           Caskroom/cask/docker
Caskroom/cask/docker-toolbox             Caskroom/versions/docker-edge

対象の詳細を確認する。

$brew cask info docker
docker: 1.10.0
Docker Engine Client
https://docs.docker.com/engine/userguide/
Not installed
https://github.com/caskroom/homebrew-cask/blob/master/Casks/docker.rb
==> Contents
  docker-1.10.0 (binary)

install!!!

brew cask install docker
==> Satisfying dependencies
complete
==> Downloading https://get.docker.com/builds/Darwin/x86_64/docker-1.10.0
######################################################################## 100.0%
==> Verifying checksum for Cask docker
==> Symlinking Binary 'docker-1.10.0' to '/usr/local/bin/docker'
Password:
🍺  docker staged at '/opt/homebrew-cask/Caskroom/docker/1.10.0' (10M)

installできているか確認します。

$docker version
Client:
 Version:      1.10.0
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   590d5108
 Built:        Thu Feb  4 19:55:25 2016
 OS/Arch:      darwin/amd64
Cannot connect to the Docker daemon. Is the docker daemon running on this host?

次はdocker-machineを入れます。

Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.