Skip to the content.

Run Ruby in Docker

Sample Ruby App that Reads Mysql

Dockerfile that builds the Ruby App

Build the Ruby Image

docker build -t myruby examples/session1/ruby/

Run the Ruby Container

docker run --rm -it -p 4567:4567 --network mynet --name rubyserver myruby

Open a web page for the application

Press Cntl-C to exit the container.