相关疑难解决方法(0)

创建没有源映像(OS)的docker镜像

我们可以使用带有源图像(OS)的docker文件来创建docker镜像,即

FROM rhel
Run Code Online (Sandbox Code Playgroud)

我们不希望所有应用程序泊坞窗图像中都有基本图像(centos或rhel).我们想要分离基本图像(centos或rhel)和应用程序图像,并在运行时链接它们.可能吗?

当我在没有 FROM centos或构建docker镜像时rhel,docker抱怨:"在提交前提供源图像"

我的docker文件如下所示:

MAINTAINER abc

RUN mkdir /opt/cassandra

RUN cd /opt/cassandra

RUN wget http://www.interior-dsgn.com/apache/cassandra/2.1.2/apache-cassandra-2.1.2-bin.tar.gz

RUN tar xvzf apache-cassandra-2.1.2-bin.tar.gz

RUN cd apache-cassandra-2.1.2-bin
Run Code Online (Sandbox Code Playgroud)

docker dockerfile

1
推荐指数
1
解决办法
5351
查看次数

标签 统计

docker ×1

dockerfile ×1