4.4. Creating a system image with RHEL image builder on the command line
To build a customized RHEL image by using the RHEL image builder command-line interface, you must specify a blueprint and an image type. Optionally, you can also specify a distribution.
If you do not specify a distribution, it uses the same distribution and version as the host system. The architecture is also the same as the one on the host.
Prerequisites
- You have a blueprint prepared for the image.
Procedure
Optional: List the image formats you can create:
# image-builder listStart the compose:
# image-builder build <image_type> --blueprint <blueprint_name>Replace
<blueprint_name>with the name of the blueprint, and<image_type>with the type of the image.
If you do not specify a distro,image-builderuses the same distro it is installed.The compose process starts and take some minutes to complete. You can follow the image building steps until the image is ready.
After the image building process finishes, the image is available for your use at the directory where you create it.