Sign inSign up

crohr/docker-sinatra

By crohr

•Updated about 11 years ago

Image
0

249

crohr/docker-sinatra repository overview

⁠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

Tag summary

Content type

Image

Digest

sha256:25e1b0cbb…

Size

261.9 MB

Last updated

about 11 years ago

docker pull crohr/docker-sinatra