【发布时间】:2015-10-30 19:09:26
【问题描述】:
我是 docker 新手,所以我可能做错了,但我正在尝试通过 Dockerfile 安装 Tomcat6,如下所示:
FROM rhel7:latest
RUN cd /tmp
RUN "wget", "http://www.us.apache.org/dist/tomcat/tomcat-6/v6.0.44/bin/apache-tomcat-6.0.44.tar.gz"
RUN tar xzf apache-tomcat-6.0.44.tar.gz
RUN mv apache-tomcat-6.0.44 /usr/local/tomcat6
RUN cd /usr/local/tomcat6
Run ./bin/start.sh
它在第三行失败了:
RUN "wget", "http://www.us.apache.org/dist/tomcat/tomcat-6/v6.0.44/bin/apache-tomcat-6.0.44.tar.gz"
当我运行 docker build 时,我得到了这个:
我正在使用:
- Oracle Virtual Box V4.3.28 r100309
- RHEL7 上的 Docker
提前感谢您的帮助。
【问题讨论】:
-
我看到这篇文章是为了寻找 CentOS 7 服务器中
returned a non-zero code: 139的解决方案。我已经解决了我的问题,只是再次卸载并重新安装 docker。sudo yum remove docker.x86_64 docker-common.x86_64 docker-distribution.x86_64 docker-rhel-push-plugin.x86_64sudo yum remove docker.x86_64 docker-common.x86_64 docker-distribution.x86_64 docker-rhel-push-plugin.x86_64 -
@WellingtonSouza 错误 139 表示您正在为错误的 CPU 架构进行编译
标签: docker tomcat6 rhel dockerfile rhel7