Public | Automated Build

Last pushed: 3 years ago
Short Description
Short description is empty for this repo.
Full Description

Install VirtualBox

You'll need to install virtualbox if you don't already have it.

Install Docker

brew install boot2docker
boot2docker init
boot2docker start
$(boot2docker shellinit)

Test the install with

docker run hello-world

Add a Hostname

add to /etc/hosts docker.local


Clone this git repository locally and then from there build the image...

docker build -t docker-test .

Then run it and bind sinatra to port 80...

docker run -p 80:4567 --rm docker-test


Visit docker.local in your browser and you should see a 'Hello World (From Docker)' message.


You can optionally start a deamonized process instead by starting with...

docker run --name sinatra -p 80:4567 -d docker-test

The following commands might be helpful if you do deamonize the process...

docker ps
docker logs sinatra
docker stop sinatra
docker start sinatra
docker rm sinatra
Docker Pull Command
Source Repository