Skip to content

Latest commit

 

History

History
58 lines (36 loc) · 760 Bytes

README.md

File metadata and controls

58 lines (36 loc) · 760 Bytes

Runing a sinatra application on Docker

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

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