我正在尝试在 rhel6 中下载文件并使用 tar 解压缩它。我在 docker 上运行它。我收到一个奇怪的错误,说 /bin/sh: tar: command not found。我是 linux 和 docker 的新手。有人可以帮忙吗。
#HELLO
FROM rhel6
MAINTAINER xxxxx
#RUN yum -y install wget
RUN yum update -y && yum clean all
#RUN yum -y install tar
RUN curl -OL http://username:pwd@downloads.datastax.com/enterprise/dse-4.0.3-bin.tar.gz
RUN curl -OL http://username:pwd@downloads.datastax.com/enterprise/opscenter-4.0.3.tar.gz
RUN echo $PATH
RUN tar -xzvf opscenter-4.0.3.tar.gz
RUN rm *.tar.gz