I found the official image which is missing NodeJS as a result its getting error. There is very less image found for Ruby on Rails latest. So, I have made it.
docker run -itd --name ror -v "$PWD":/usr/src/app -w /usr/src/app -p 7001:3000 sabbir1cse/ror2.3-5.1
docker exec -it ror bash
rails new sample_app
rails server -b 0.0.0.0 -p 3000
Its a development environment used with full control over you.
To access it outside docker/you host machine use http://localhost:7001