The command '/bin/sh -c returned a non-zero code: 127

前端 未结 3 618
感动是毒
感动是毒 2021-02-05 01:19

I\'m new to docker so I might be doing this wrong, but I\'m trying to install Tomcat6 through a Dockerfile which like this:

FROM rhel7:latest
RUN cd         


        
3条回答
  •  猫巷女王i
    2021-02-05 02:06

    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.

提交回复
热议问题