This is a dev enviroment for running ruby without concerning about it's installation
Docker-compose installation (for linux only. Please don't install from apt-get)
docker-compose build
docker-compose run --rm --service-ports ruby_dev
Once inside the container you can open
irb
on terminal that now is open