2.5. bootc 이미지 버전 덮어쓰기


RHEL(Red Hat Enterprise Linux) 기본 이미지, UBI(Universal Base Images) 및 rhel-bootc 는 주요 운영 체제 버전만 추적하는 버전 번호를 사용합니다. 파생 이미지에 대한 특정 버전 번호를 정의하려면 Containerfile에 version 레이블을 추가하여 이 값을 덮어쓸 수 있습니다.

사전 요구 사항

  • container-tools meta-package가 설치되어 있습니다.

프로세스

  1. 컨테이너 파일을 생성합니다.

    FROM registry.redhat.io/rhel10/rhel-bootc:latest
    # In this example, the custom operating system has its own
    # version scheme.
    # The operating system major version is copied
    # and a sub-version of it is added, which represents a point-in-time
    # snapshot of the base OS content.
    # This just changes the output of bootc status. A deeper level
    # of customization is available by also changing the contents of /usr/lib/os-release.
    # Define the custom version and release metadata
    LABEL org.opencontainers.image.version=”10.1.1”
  2. 현재 디렉터리의 Container file 을 사용하여 <image> 이미지를 빌드합니다.

    $ podman build -t quay.io/<namespace>/<image>:<tag> .

검증

  • 덮어쓰기가 적용되었는지 확인합니다.

    $ podman inspect <image-name> --format '{{index .Labels "org.opencontainers.image.version"}}'
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 문서 정보

Legal Notice

Theme

© 2026 Red Hat
맨 위로 이동