boot2docker インストール
brew install boot2docker
初期化やら設定やら
boot2docker init
boot2docker start
$(boot2docker shellinit)
とりあえず、Hello World
docker run ubuntu echo hello world
hello world
番外編:こんなエラー出たら?
FATA[0000] Post http:///var/run/docker.sock/v1.16/containers/create: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS?
環境変数の初期化を忘れてましたね。。。
$(boot2docker shellinit)
で解消。
Special Thanks
雑記
これぐらいの内容でエントリ書くなよって感じが満載ですが、これは次のエントリを書くための前準備になるので、一応記事として残しますた。。。
こんな記事でもお役にたてれば幸いです。。。