Install Buildah
Reference
- you can directly install docker engine from đ¶buildah official website.
Prerequisites
Kernel Version Requirements To run Buildah on Red Hat Enterprise Linux or CentOS, version 7.4 or higher is required. On other Linux distributions Buildah requires a kernel version that supports the OverlayFS and/or fuse-overlayfs filesystem – you’ll need to consult your distribution’s documentation to determine a minimum version number.
runc
Requirement Buildah uses runc to run commands when buildah run is used, or when buildah build encounters a RUN instruction, so you’ll also need to build and install a compatible version of runc for Buildah to call for those cases. If Buildah is installed via a package manager such as yum, dnf or apt-get, runc will be installed as part of that process.CNI Requirement When Buildah uses runc to run commands, it defaults to running those commands in the host’s network namespace. If the command is being run in a separate user namespace, though, for example when ID mapping is used, then the command will also be run in a separate network namespace.
A newly-created network namespace starts with no network interfaces, so commands which are run in that namespace are effectively disconnected from the network unless additional setup is done. Buildah relies on the CNI library and plugins to set up interfaces and routing for network namespaces.
Installation
Caution
If you already have something wrong with apt update
, please check the following đlink, adding docker source wont help you to solve that problem.
sudo dnf update -y
sudo dnf -y install buildah
Once the installation is complete, The buildah images
command will list all the images:
buildah images
sudo yum -y install buildah
Once the installation is complete, start the Docker service
sudo systemctl enable docker
sudo systemctl start docker
- Set up Docker’s apt repository.
sudo apt-get -y update
sudo apt-get -y install buildah
- Verify that the installation is successful by running the hello-world image:
sudo buildah run hello-world
Info
- Docker Image saved in
/var/lib/docker
Mirror
You can modify /etc/docker/daemon.json
{
"registry-mirrors": ["<$mirror_url>"]
}
for example:
https://docker.mirrors.ustc.edu.cn