호스트(RHEL8) 및 컨테이너(UBI8) 구독이 일치하지 않습니다.

호스트(RHEL8) 및 컨테이너(UBI8) 구독이 일치하지 않습니다.

~에 따르면RHEL 문서기본적으로 인터넷의 모든 튜토리얼에서 내 Podman 컨테이너는 호스트 구독을 활용해야 합니다.

하지만 제가 아는 한 그렇지 않습니다...

내 호스트에는 다음이 있습니다.

# yum repolist enabled
Updating Subscription Management repositories.
repo id                                         repo name
dirsrv-11-for-rhel-8-x86_64-rpms                Red Hat Directory Server 11 for RHEL 8 x86_64 (RPMs)   <= I enabled this repo on the host, thanks to my subscription
rhel-8-for-x86_64-appstream-rpms                Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
rhel-8-for-x86_64-baseos-rpms                   Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)

그러나 Podman 컨테이너 내부에서는 다음을 수행합니다.

# yum repolist enabled
Updating Subscription Management repositories.
Unable to read consumer identity    <= this does not look good....
Subscription Manager is operating in container mode.
repo id                                    repo name
ubi-8-appstream                            Red Hat Universal Base Image 8 (RPMs) - AppStream
ubi-8-baseos                               Red Hat Universal Base Image 8 (RPMs) - BaseOS
ubi-8-codeready-builder                    Red Hat Universal Base Image 8 (RPMs) - CodeReady Builder
 <= My repo is missing !

컨테이너 내에서 필요한 파일에 액세스할 수 있습니다.

# ls -la /run/secrets/
total 260
drwxr-xr-x. 4 root root    120 Aug 29 16:19 .
drwxr-xr-x. 1 root root   4096 Aug 29 16:22 ..
drwxr-xr-x. 2 root root     72 Aug 23 13:08 etc-pki-entitlement
-rw-r--r--. 1 root root 257134 Aug 26 12:40 redhat.repo
drwxr-xr-x. 6 root root    104 Aug 23 09:00 rhsm
-rw-r--r--. 1 root root      0 Aug 29 16:19 system-fips

무슨 일인지 아세요?

당신의 도움을 주셔서 감사합니다!

국가 표준

편집: 내 시스템에 대한 일부 정보:

# cat /etc/os-release
NAME="Red Hat Enterprise Linux"
VERSION="8.6 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.6"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.6 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.6
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.6"

# podman -v
podman version 4.1.1

# buildah -v
buildah version 1.26.2 (image-spec 1.0.2-dev, runtime-spec 1.0.2-dev)

#  yum --version
4.4.2
  Installed: rpm-0:4.14.3-23.el8.x86_64 at Thu Aug 25 09:26:36 2022
  Built    : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla> at Tue Apr  5 18:38:09 2022

답변1

여전히 도움이 필요한지 확실하지 않지만 비슷한 문제가 발생했습니다. 제 경우에는 VirtualBox에서 RHEL 8.7 VM을 사용하고 있습니다. 나는 거의 똑같은 문제를 겪고 있습니다. 나에게는 Windows 호스트에 Docker가 설치되어 있었기 때문입니다. 가상화 기능 중 일부는 VirtualBox와 혼동되는 것 같습니다. 이 문제를 해결하기 위해 앱 및 기능 > 프로그램 및 기능 > Windows 기능 켜기 또는 끄기로 이동했습니다. 표시되는 하이퍼바이저 또는 가상 머신 기능(특히 가상 머신 플랫폼)을 비활성화합니다. 그 후 시스템을 다시 시작하고 가상 머신을 다시 시작했는데 모든 것이 잘 작동했습니다. 여전히 오류 메시지가 표시되지만 이제 스크립트가 실행되어 필요한 모든 저장소에 액세스합니다. 이렇게 하면 호스트 시스템의 Docker가 중단됩니다. 문제를 해결하려면 제거하고 다시 설치해야 합니다. 이게 도움이 되길 바란다.

관련 정보