コンテナーでの DNF インストールの失敗: RHEL システムでの不明なリポジトリーエラー
Issue
- RHEL システムでのコンテナービルド中に、以下の dnf コマンドを使用して RHEL リポジトリーからパッケージをインストールします。
dnf install --enablerepo=rhel-8-for-x86_64-appstream-rpms \
--installroot=$mnt --nodocs --setopt=install_weak_deps=false \
--setopt=reposdir=/etc/yum.repos.d <pkg>
- リポジトリーがホスト上で使用可能であるにもかかわらず、以下のエラーが発生して失敗します。
Updating Subscription Management repositories.
Unable to read consumer identity
subscription-manager is operating in container mode.
Error: Unknown repo: 'rhel-8-for-x86_64-appstream-rpms'
Environment
- RHEL 8.0
- buildah コンテナー内でのコンテナーイメージのビルド
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.