Dockerをmacで使おう!インストール
僕の環境は
os X 10.9.x
virtualboxはすでにインストールされている前提
まだの人は下記のブログを参考にインストールと。
うえのブログを参考にすればOKだけど、引っかかったところだけメモ
イメージをpullしようとしたところで
FATA[0000] Post http:///var/run/docker.sock/v1.17/images/create?fromImage=centos%3Acontos6: dial unix /var/run/docker.sock: no such file or directory
こんなエラーが発生。
ブログを漁ってみると、環境変数の初期化の問題らしいこととその対処を発見。
コマンドラインでこうする。
fujita$ $(boot2docker shellinit)
Mac OSXでDocker(インストール編) - そごうソフトウェア研究所
そして
fujita$ docker pull centos:centos6
結果は、こんな感じに。
5b12ef8fd570: Pull complete
f6808a3e4d9e: Pull complete
511136ea3c5a: Already exists
centos:centos6: The image you are pulling has been verified. Important: image verification is a tech preview feature and should not be relied on to provide security.
Status: Downloaded newer image for centos:centos6
成功と。