The command ‘/bin/sh -c returned a non-zero code: 127
Solution to the image with error is to add before the wget CMD RUN yum -y install wget If you write it like this, it is the same result, just different execution: RUN wget http://www.us.apache.org/dist/tomcat/tomcat-6/v6.0.44/bin/apache-tomcat-6.0.44.tar.gz Don’t use the quotes and comma in RUN command.