I assume this is an environmental issue. When I do it manually (without Dockerfile), it works.
Here is my Docker file:
FROM ubuntu:14.04 RUN apt-get update RUN apt-get upgrade --assume-yes RUN apt-get install wget vim git --assume-yes # install RVM RUN apt-get install build-essential curl --assume-yes RUN curl -L https://get.rvm.io | bash -s stable RUN echo 'source /etc/profile.d/rvm.sh' >> ~/.bashrc RUN /usr/local/rvm/bin/rvm-shell -c "rvm requirements" # install Ruby RUN /usr/local/rvm/bin/rvm-shell -c "rvm autolibs enable" RUN /usr/local/rvm/bin/rvm-shell -c "rvm install 2.1.2" # install Rails RUN echo "gem: --no-rdoc --no-ri" >> ~/.gemrc RUN gem install rails -v 4.1.5 # install nodeJS RUN sudo apt-get install nodejs --assume-yes EXPOSE 3000
What I'm building with:
sudo docker build -t="james/rails" .
I get this error:
Step 11 : RUN gem install rails -v 4.1.5
James source share