This is sample project for running a sinatra application on Docker.
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
Use Vagrant. In Vagrantfile
, just add port forwarding settings.
vagrant up
and
vagrant ssh