26.8 Building a Container with Buildah
Buildah allows new containers to be built either from existing containers, an image or entirely from scratch. Buildah also includes the ability to mount the file system of a container so that it can be accessed and modified from the host.
The following buildah command, for example, will build a container from the Fedora 31 Base image (if the image has not already been pulled from the registry, buildah will download it before creating the container):
$ buildah from docker://docker.io/library/fedora:31
The result of running this command will be a container named fedora-working-container that is ready to run:
$ buildah run fedora-working-container cat /etc/passwd