Posted at

OS XでDocker

More than 5 years have passed since last update.

DockerがOS Xに対応したそうで。ドキュメント見ながらぽちぽちと。


Terminal

$ mkdir -p ~/Binary/boot2docker

$ cd ~/Binary/boot2docker
$ curl -O https://raw.github.com/steeve/boot2docker/master/boot2docker
$ chmod +x boot2docker
$ export PATH=`pwd`:$PATH


Terminal

$ mkdir -p ~/Binary/docker

$ cd ~/Binary/docker
$ curl -o docker http://get.docker.io/builds/Darwin/x86_64/docker-latest
$ chmod +x docker
$ export PATH=`pwd`:$PATH


Terminal

$ export DOCKER_HOST=tcp://

$ boot2docker init
$ boot2docker up
$ boot2docker ssh


Terminal

$ uname -a

Linux boot2docker 3.12.1-tinycore64 #1 SMP Fri Jan 10 13:04:04 UTC 2014 x86_64 GNU/Linu

動いたぽい。