3. ● Docker client tools communicate with Docker service
via TCP.
● Vagrant configuration controls starting of Core OS on
VirtualBox VM
● CoreOS provides native support for Docker containers.
Architecture
4. ● Install Homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
● Install VirtualBox and Vagrant Tools:
$ brew install Caskroom/cask/virtualbox
$ brew install Caskroom/cask/vagrant
$ brew install Caskroom/cask/vagrant-manager
● Install docker client on Mac OS X
$brew install docker
Note: If client API version is higher vs Docker service. e.g. Docker API 1.6:
$brew install
https://raw.githubusercontent.com/Homebrew/homebrew/fc4e7d263eaea48885bb9425c8a2303e8fe39e2b/Library/Formula
/docker.rb
● Set-up fig
$ sudo easy_install pip
$ sudo pip install -U fig
Installation
5. ● Start Vagrant
$ vagrant up
● Set DOCKER_HOST environment variable to manage Docker containers.
$ export DOCKER_HOST='tcp://127.0.0.1:2375'
● Check basic docker image:
$ docker run -it --rm busybox
$$ exit
● Create vanila fig fig.yml file with simplest possible content:
name:
image: busybox
● Test fig => Docker API => Vagrant => VirtualBox => Docker Service => Docker Image
$ fig run --rm name sh
$$ exit
Running