Skip to content

Latest commit

 

History

History
10 lines (9 loc) · 288 Bytes

README.md

File metadata and controls

10 lines (9 loc) · 288 Bytes

docker-ruby-hello-world

super simple ruby docker hello world

  • export PORT=8080
  • docker build -t ruby-sample .
  • ID=$(docker run -e "PORT=$PORT" -p $PORT:$PORT -d ruby-sample)
  • open "http://$(docker-machine ip):$PORT"
  • docker logs $ID
  • docker stop $ID
  • docker rm $ID