Docker

over OSX

まず、VirtualBoxをupdateしておくこと。

brew install boot2docker docker
[kanai@deadbeef-3rd:22420]rehash
[kanai@deadbeef-3rd:22421]boot2docker
Usage: boot2docker [<options>] {help|init|up|ssh|save|down|poweroff|reset|restart|config|status|info|ip|socket|shellinit|delete|destroy|download|version} [<args>]
[kanai@deadbeef-3rd:22422]docker -v
Docker version 1.2.0, build fa7b24f
[kanai@deadbeef-3rd:22423]boot2docker init
Downloading boot2docker ISO image...
Latest release is v1.2.0
[kanai@deadbeef-3rd:22434]boot2docker up
[kanai@deadbeef-3rd:22434]boot2docker status
running

で、最後にでる、

# for DOCKER on OSX
if test "`uname`" = "Darwin"; then
 export DOCKER_HOST=tcp://192.168.59.103:2375
fi

とかをzshrcに書いておく。

[kanai@deadbeef-3rd:22469]docker version | grep Server
Server version: 1.2.0
Server API version: 1.14
docker  pull debian:lastest
docker  pull debian:latest

Docker Hub Registry https://registry.hub.docker.com