在Centos7.1碼頭工人主持人:我建立一個碼頭工人形象與Dockerfile有命令碼頭工人建立自己的錯誤有沒有啓用回購
RUN yum -y install deltarpm yum-utils --disablerepo=*-eus-* --disablerepo=*-htb-* --disablerepo=*-ha-* --disablerepo=*-rt-* --disablerepo=*-lb-* --disablerepo=*-rs-* --disablerepo=*-sap-*
在泊塢窗生成命令的運行:docker build -t <image>
,我得到的錯誤:
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>
我該如何解決這個問題?我是否需要在Docker中啓用yum repo?
(請注意,我可以安裝在碼頭工人的主機這些軟件包)
什麼是你的基地形象? (Dockerfile中的FROM xxx) – VonC