Using rbenv with Docker You're missing a setup step for ruby-build: You need to run its install.sh after you cloned it.