Docker - 使用RHEL iso创建基本映像

时间:2014-12-17 05:03:02

标签: image docker rhel

我正在尝试将RHEL图像用于我的项目。有没有办法用我的RHEL 6的iso文件创建基本映像?我没有使用Fedora,因为我的项目使用RHEL分发是有益的。

1 个答案:

答案 0 :(得分:2)

如果你想要一点点控制,你可能想要在Github上的Docker contrib repository中查看脚本。

One of them适用于" 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作为源。

相关问题