【问题标题】:Docker - Creating base image with RHEL isoDocker - 使用 RHEL iso 创建基础镜像
【发布时间】:2015-02-15 14:11:42
【问题描述】:

我正在尝试为我的项目使用 RHEL 映像。有没有办法用我的 RHEL 6 的 iso 文件创建基础映像?我没有使用 Fedora,因为使用 RHEL 发行版对我的项目是有益的。

【问题讨论】:

标签: image docker rhel


【解决方案1】:

如果你想要一个公平的控制,你可能想在 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 作为源。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-04-24
    • 2015-11-09
    • 1970-01-01
    • 2017-09-29
    • 2020-02-26
    • 1970-01-01
    • 2015-08-25
    • 2019-12-21
    相关资源
    最近更新 更多