2.5. bootc-image-builder 설치
bootc-image-builder 를 설치하려면 Red Hat Container Registry를 사용합니다. bootc-image-builder 는 컨테이너로 사용하기 위한 것이며 RHEL에서 RPM 패키지로 사용할 수 없습니다.
사전 요구 사항
-
container-toolsmeta-package가 설치되어 있습니다. meta-package에는 Podman, Buildah, Skopeo와 같은 모든 컨테이너 툴이 포함되어 있습니다. -
registry.redhat.io에서 인증되었습니다. 자세한 내용은 Red Hat Container Registry Authentication 을 참조하십시오.
프로세스
로그인하여
registry.redhat.io에 인증합니다.$ sudo podman login registry.redhat.iobootc-image-builder툴을 설치합니다.$ sudo podman pull registry.redhat.io/rhel10/bootc-image-builder
검증
로컬 시스템으로 가져온 모든 이미지를 나열합니다.
$ sudo podman images REPOSITORY TAG IMAGE ID CREATED SIZE registry.redhat.io/rhel10/bootc-image-builder latest b361f3e845ea 24 hours ago 676 MB
2.5.1. bootc-image-builder 를 사용하여 RHEL 9.6 디스크 이미지 생성 링크 복사링크가 클립보드에 복사되었습니다!
기존 컨테이너 이미지에서 부팅 가능한 디스크 이미지를 생성하려면 bootc-image-builder 를 사용하면 됩니다. 그런 다음 물리적 또는 가상 호스트에 기존 방법을 사용하여 이러한 디스크 이미지를 배포할 수 있습니다.
사전 요구 사항
- 호스트 시스템에 Podman이 설치되어 있어야 합니다.
-
bootc-image-builder툴을 실행하고--privileged모드에서 컨테이너를 실행하여 이미지를 빌드할 수 있는 루트 액세스 권한이 있습니다.
프로세스
선택 사항:
config.toml를 생성하여 사용자 액세스를 구성합니다. 예를 들면 다음과 같습니다.[[customizations.user]] name = "user" password = "pass" key = "ssh-rsa AAA ... user@email.com" groups = ["wheel"]이미지를 수동으로 가져옵니다.
$ sudo podman pull quay.io/quay.io/<_namespace_>/<_image_>:<_tag_>빌드 중인 이미지의
출력디렉터리를 생성합니다.$ mkdir outputbootc-image-builder를 실행하여 이미지를 생성합니다. 구성을 추가하지 않으려면-v $(pwd)/config.toml:/config.toml인수를 생략합니다.$ sudo podman run \ --rm \ -it \ --privileged \ --pull=newer \ --security-opt label=type:unconfined_t \ -v /var/lib/containers/storage:/var/lib/containers/storage \ -v $(pwd)/config.toml:/config.toml \ -v $(pwd)/output:/output \ registry.redhat.io/rhel9/bootc-image-builder:latest \ --type iso \ --config /config.toml \ quay.io/<namespace>/<image>:<tag>출력 폴더에서
.iso이미지를 찾을 수 있습니다.