Preparing our environment
Buildah is available on different distributions and can be installed using the respective package managers. This section provides a non-exhaustive list of installation examples on the major distributions. For the sake of clarity, it is important to reiterate that the book lab environments were all based on Fedora 34:
- Fedora: To install Buildah on Fedora, run the following
dnf
command:$ sudo dnf -y install buildah
- Debian: To install Buildah on Debian Bullseye or later, run the following
apt-get
commands:$ sudo apt-get update $ sudo apt-get -y install buildah
- CentOS: To install Buildah on CentOS, run the following
yum
command:$ sudo yum install -y buildah
- RHEL8: To install Buildah on RHEL8, run the following
yum module
commands:$ sudo yum module enable -y container-tools:1.0 $ sudo yum module install -y buildah
- RHEL7: To install Buildah on RHEL7, enable the
rhel-7-server-extras-rpms
repository and install withyum
:$ sudo subscription...