Public | Automated Build

Last pushed: 2 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.

https://www.virtualbox.org/wiki/Downloads

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

192.168.59.103 docker.local

Build

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

Test

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

Deamonizing

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
Owner
neonadventures
Source Repository

Comments (0)