Add software to a UBI container
Enhance Universal Base Images (UBI) by installing additional software from Red Hat repositories. You can add packages to running containers by using dnf or microdnf depending on the image type.
Red Hat builds UBIs from a subset of RHEL content. UBIs also provide a subset of RHEL packages, which are freely available to install for use with UBI. You can use the DNF repositories, which include RPM packages and updates, to add or update software to a running container. UBIs provide a set of pre-built language runtime container images,for example, Python, Perl, Node.js, Ruby, and so on.
To add packages from UBI repositories to running UBI containers:
- On UBI init and UBI standard images, use the
dnfcommand - On UBI minimal images, use the
microdnfcommand