我正在尝试在简单的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.
斜体是我的.