10.18. 컨테이너
podman 및 bootc는 동일한 레지스트리 로그인 프로세스를 공유하지 않습니다.
이미지를 가져올 때 podman 및 bootc
는 다른 레지스트리 로그인 프로세스를 사용합니다. 결과적으로 Podman을 사용하여 이미지에 로그인하면 bootc
용으로 레지스트리에 로깅하면 해당 이미지에서 작동하지 않습니다. RHEL 시스템의 이미지 모드를 설치하고 다음 명령을 사용하여 registry.redhat.io에 로그인합니다.
podman login registry.redhat.io <username_password>
# podman login registry.redhat.io <username_password>
그런 다음 다음 명령을 사용하여 registry.redhat.io/rhel9/rhel-bootc
이미지로 전환하려고 합니다.
bootc switch registry.redhat.io/rhel9/rhel-bootc:9.4
# bootc switch registry.redhat.io/rhel9/rhel-bootc:9.4
다음 메시지가 표시됩니다.
Queued for next boot: registry.redhat.io/rhel9/rhel-bootc:9.4
Queued for next boot: registry.redhat.io/rhel9/rhel-bootc:9.4
그러나 오류가 표시됩니다.
ERROR Switching: Pulling: Creating importer: Failed to invoke skopeo proxy method OpenImage: remote error: unable to retrieve auth token: invalid username/password: unauthorized: Please login to the Red Hat Registry using your Customer Portal credentials. Further instructions can be found here: https://access.redhat.com/RegistryAuthentication
ERROR Switching: Pulling: Creating importer: Failed to invoke skopeo proxy method OpenImage: remote error: unable to retrieve auth token: invalid username/password: unauthorized: Please login to the Red Hat Registry using your Customer Portal credentials. Further instructions can be found here: https://access.redhat.com/RegistryAuthentication
해결방법: 부팅c
와 함께 인증된 레지스트리를 사용하도록 컨테이너 풀 시크릿 구성 단계를 따르십시오.
Jira:RHELDOCS-18471[1]
composefs를 사용하여 cloud-init
growpart 건너뛰기 활성화
composefs가 활성화되면 일반 기본 이미지에서 이미지를 생성하면 rootfs에서 파일 시스템 증가를 기록하여 다음과 유사한 오류를 표시합니다.
2024-04-30 17:27:53,543 - cc_growpart.py[DEBUG]: '/' SKIPPED: stat of 'overlay' failed: [Errno 2] No such file or directory: 'overlay'
2024-04-30 17:27:53,543 - cc_growpart.py[DEBUG]: '/' SKIPPED: stat of 'overlay' failed: [Errno 2] No such file or directory: 'overlay'
해결방법: 컨테이너에 파티션 구성을 작성할 수 있도록 동적으로 100G를 선택하는 대신 컨테이너에 rootfs
기본 크기를 지정하여 사용자 지정 growpart를 추가할 수 있습니다.
FIPS가 활성화된 호스트에서 FIPS bootc 이미지 생성 실패
update-crypto-policies 패키지 때문에 FIPS 모드가 활성화된 Podman을 사용하여 호스트에 디스크 이미지를 빌드하면 종료 코드 3과 함께 실패합니다.
Enable the FIPS crypto policy crypto-policies-scripts is not installed by default in RHEL-10
# Enable the FIPS crypto policy
# crypto-policies-scripts is not installed by default in RHEL-10
RUN dnf install -y crypto-policies-scripts && update-crypto-policies --no-reload --set FIPS
해결방법: FIPS 모드가 비활성화된 상태에서 bootc 이미지를 빌드합니다.
디스크 공간이 부족하면 배포가 실패할 수 있습니다.
디스크 여유 공간이 충분하지 않고 패키지 모드 시스템에 부팅 컨테이너 이미지를 배포하면 설치 오류가 발생하여 시스템이 부팅되지 않을 수 있습니다. 배포 전에 이미지에 충분한 디스크 공간을 사용할 수 있는지 확인하고 프로비저닝 논리 볼륨을 설치 및 조정할 수 있는지 확인합니다.
Jira:RHELDOCS-19948[1]
LVM으로 표시된 Azure의 RHEL 이미지에는 기본 레이아웃 크기 조정이 필요합니다.
Azure에서 system-reinstall-bootc
또는 bootc 설치를
사용하는 경우 LVM으로 표시된 RHEL 이미지에 기본 레이아웃 크기 조정이 필요합니다.
해결방법: RAW로 레이블이 지정된 RHEL 이미지를 사용합니다. 기본 레이아웃의 크기를 조정할 필요가 없습니다.
Jira:RHELDOCS-19945[1]