Docker - 使用RHEL iso创建基础镜像

7

我正在尝试使用RHEL镜像来完成我的项目。有没有办法使用我的RHEL 6的iso文件创建基础镜像?由于使用RHEL分发版对我的项目有利,因此我不使用Fedora。


1
请查看此帖子 https://access.redhat.com/discussions/734363 另外,您可能想要使用CentOS 6镜像 - https://registry.hub.docker.com/_/centos/ - tuxdna
2
谢谢!我也找到了答案!https://groups.google.com/forum/#!topic/docker-user/TGvzjR4afzI - Hans
很高兴知道这个 :-) - tuxdna
@Han - 你应该将那个URL的内容作为实际答案并标记为已接受。 - slm
1个回答

2
如果你想要相当多的控制权,你可能需要查看Github上Docker contrib repository中的脚本。 其中一个 是针对基于"yum"的镜像,例如Centos,但没有理由它不能用于RHEL。
它通过一系列的YUM安装引导自己。如果你看一下使用方法:
OPTIONS:
-p "<packages>"  The list of packages to install in the container.
               The default is blank.
-g "<groups>"    The groups of packages to install in the container.
               The default is "Core".
-y <yumconf>     The path to the yum config to install packages from. The
               default is /etc/yum.conf for Centos/RHEL and /etc/dnf/dnf.conf for Fedora

你可以看到,你可以提供自己的yum.conf文件,并将其设置为使用你的ISO作为源。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接