Public | Automated Build

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

Runing a sinatra application on Docker

This is sample project for running a sinatra application on Docker.

test push #2

Usage

Create Image

docker build -t sinatra .

Run it !

ID=$(docker run -p 4567:4567 -d sinatra)

You can access it from your browser, http://localhost:4567/.

Check logs.

docker logs $ID

Stop it.

docker stop $ID

Delete it.

docker rm $ID

OS X

Use Vagrant. In Vagrantfile, just add port forwarding settings.

vagrant up

and

vagrant ssh

Reference

Docker Pull Command
Owner
crohr
Source Repository