加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

在纯码头工引擎的Redhat容器

发布时间:2020-12-14 02:41:31 所属栏目:Linux 来源:网络整理
导读:我正在尝试在简单的docker主机上运行rhel容器. docker主机是rhel7,已正确订阅.我想使用纯粹的docker引擎包而不是redhat附带的引擎包,但不幸的是,一旦我切换到纯粹的docker引擎,似乎订阅管理和使用不可用.我可以毫无问题地运行图像,但是一旦我尝试使用yum,就
我正在尝试在简单的docker主机上运行rhel容器. docker主机是rhel7,已正确订阅.我想使用纯粹的docker引擎包而不是redhat附带的引擎包,但不幸的是,一旦我切换到纯粹的docker引擎,似乎订阅管理和使用不可用.我可以毫无问题地运行图像,但是一旦我尝试使用yum,就没有运气:
# docker run --rm -it registry.access.redhat.com/rhel7 /bin/sh
sh-4.2# yum update
Loaded plugins: ovl,product-id,search-disabled-repos,subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
There are no enabled repos.
 Run "yum repolist all" to see the repos you have.
 You can enable repos with yum-config-manager --enable <repo>

百胜和订阅的东西在主要主机系统上运行良好.任何人都知道如何使用纯引擎和主机的凭据让redhat容器工作(并能够提取包)?

谢谢!

解决方法

在RHEL7盒子上开发容器(或部署在容器中的应用程序)的“官方”方法是使用 Container Development Kit.

Red Hat Container Development Kit provides a pre-built Container Development Environment based on Red Hat Enterprise Linux to help you develop container-based (sometimes called Docker) applications quickly. The containers you build can be easily deployed on any Red Hat container host or platform,including: Red Hat Enterprise Linux,Red Hat Enterprise Linux Atomic Host,and our platform-as-a-service solution,OpenShift Enterprise 3.

斜体是我的.

订阅的RHEL7(甚至是开发人员订阅)将透明地允许您使用容器中可用于订阅的RHEL存储库.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读