an open source project to pack, ship and run
any application as a lightweight container
Docker is a shipping container system for code
Static website! Web frontend !User DB! Queue! Analytics DB!
QA server! Public Cloud! Contributor’s
…that can be manipulated using
standard operations and run
consistently on virtually any
hardware platform !
An engine that enables any
payload to be encapsulated
as a lightweight, portable,
for Mac OS X
$ brew update
$ brew install boot2docker
#How To Use Docker On Mac OS X
#Use Docker Hello word
$ docker run ubuntu /bin/echo hello world
Mac and Container
$ boot2docker stop
$ vim $HOME/.boot2docker/profile
$ VBoxManage sharedfolder add boot2docker-vm -name home -hostpath $HOME
$ boot2docker up
$ boot2docker ssh "sudo modprobe vboxsf && mkdir -p $HOME && sudo mount -t vboxsf home $HOME”
$ docker run -i -t -v ~/Documents/hoge:~/hoge hoge/moge /bin/bash
$ docker attach <ContainerID>
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using 1.5.2
New app detected loading default bundler cache
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from https://rubygems.org/..........
Fetching additional metadata from https://rubygems.org/..
Using rack (1.5.2)
Using tilt (1.4.1)
Using bundler (1.5.2)
Installing rack-protection (1.5.3)
Installing sinatra (1.4.5)
Your bundle is complete!
Gems in the groups development and test were not installed.
It was installed into ./vendor/bundle
Bundle completed (15.09s)
Cleaning up the bundler cache.
You have not declared a Ruby version in your Gemfile.
To set your Ruby version add this line to your Gemfile:
# See https://devcenter.heroku.com/articles/ruby-versions for more information.
No Procfile detected, using the default web server (webrick)