[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-82340":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":33,"readmeContent":34,"aiSummary":35,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":36,"discoverSource":37},82340,"buildah","podman-container-tools\u002Fbuildah","podman-container-tools","A tool that facilitates building OCI images.","https:\u002F\u002Fbuildah.io",null,"Go",8871,906,94,210,0,2,41,63,12,39.87,"Apache License 2.0",false,"main",[26,27,28,29,30,31,32],"container","container-image","containers","docker","oci","oci-image","podman","2026-06-12 02:04:25","![buildah logo (light)](logos\u002Fbuildah-logo_large.png#gh-light-mode-only)\n![buildah logo (dark)](logos\u002Fbuildah-logo_reverse_large.png#gh-dark-mode-only)\n\n# [Buildah](https:\u002F\u002Fwww.youtube.com\u002Fembed\u002FYVk5NgSiUw8) - a tool that facilitates building [Open Container Initiative (OCI)](https:\u002F\u002Fwww.opencontainers.org\u002F) container images\n\n[![Go Report Card](https:\u002F\u002Fgoreportcard.com\u002Fbadge\u002Fgithub.com\u002Fcontainers\u002Fbuildah)](https:\u002F\u002Fgoreportcard.com\u002Freport\u002Fgithub.com\u002Fcontainers\u002Fbuildah)\n[![OpenSSF Best Practices](https:\u002F\u002Fwww.bestpractices.dev\u002Fprojects\u002F10579\u002Fbadge)](https:\u002F\u002Fwww.bestpractices.dev\u002Fprojects\u002F10579)\n\n\nThe Buildah package provides a command line tool that can be used to\n* create a working container, either from scratch or using an image as a starting point\n* create an image, either from a working container or via the instructions in a Dockerfile\n* images can be built in either the OCI image format or the traditional upstream docker image format\n* mount a working container's root filesystem for manipulation\n* unmount a working container's root filesystem\n* use the updated contents of a container's root filesystem as a filesystem layer to create a new image\n* delete a working container or an image\n* rename a local container\n\n## Buildah Information for Developers\n\nFor blogs, release announcements and more, please checkout the [buildah.io](https:\u002F\u002Fbuildah.io) website!\n\n**[Buildah Container Images](https:\u002F\u002Fgithub.com\u002Fcontainers\u002Fimage_build\u002Fblob\u002Fmain\u002Fbuildah\u002FREADME.md)**\n\n**[Buildah Demos](demos)**\n\n**[Changelog](CHANGELOG.md)**\n\n**[Contributing](CONTRIBUTING.md)**\n\n**[Development Plan](developmentplan.md)**\n\n**[Installation notes](install.md)**\n\n**[Troubleshooting Guide](troubleshooting.md)**\n\n**[Tutorials](docs\u002Ftutorials)**\n\n## Buildah and Podman relationship\n\nBuildah and Podman are two complementary open-source projects that are\navailable on most Linux platforms and both projects reside at\n[GitHub.com](https:\u002F\u002Fgithub.com) with Buildah\n[here](https:\u002F\u002Fgithub.com\u002Fcontainers\u002Fbuildah) and Podman\n[here](https:\u002F\u002Fgithub.com\u002Fcontainers\u002Fpodman).  Both, Buildah and Podman are\ncommand line tools that work on Open Container Initiative (OCI) images and\ncontainers.  The two projects differentiate in their specialization.\n\nBuildah specializes in building OCI images.  Buildah's commands replicate all\nof the commands that are found in a Dockerfile.  This allows building images\nwith and without Dockerfiles while not requiring any root privileges.\nBuildah’s ultimate goal is to provide a lower-level coreutils interface to\nbuild images.  The flexibility of building images without Dockerfiles allows\nfor the integration of other scripting languages into the build process.\nBuildah follows a simple fork-exec model and does not run as a daemon\nbut it is based on a comprehensive API in golang, which can be vendored\ninto other tools.\n\nPodman specializes in all of the commands and functions that help you to maintain and modify\nOCI images, such as pulling and tagging.  It also allows you to create, run, and maintain those containers\ncreated from those images.  For building container images via Dockerfiles, Podman uses Buildah's\ngolang API and can be installed independently from Buildah.\n\nA major difference between Podman and Buildah is their concept of a container.  Podman\nallows users to create \"traditional containers\" where the intent of these containers is\nto be long lived.  While Buildah containers are really just created to allow content\nto be added back to the container image.  An easy way to think of it is the\n`buildah run` command emulates the RUN command in a Dockerfile while the `podman run`\ncommand emulates the `docker run` command in functionality.  Because of this and their underlying\nstorage differences, you can not see Podman containers from within Buildah or vice versa.\n\nIn short, Buildah is an efficient way to create OCI images while Podman allows\nyou to manage and maintain those images and containers in a production environment using\nfamiliar container cli commands.  For more details, see the\n[Container Tools Guide](https:\u002F\u002Fgithub.com\u002Fcontainers\u002Fbuildah\u002Ftree\u002Fmain\u002Fdocs\u002Fcontainertools).\n\n## Example\n\nFrom [`.\u002Fexamples\u002Flighttpd.sh`](examples\u002Flighttpd.sh):\n\n```bash\n$ cat > lighttpd.sh \u003C\u003C\"EOF\"\n#!\u002Fusr\u002Fbin\u002Fenv bash\n\nset -x\n\nctr1=$(buildah from \"${1:-fedora}\")\n\n## Get all updates and install our minimal httpd server\nbuildah run \"$ctr1\" -- dnf update -y\nbuildah run \"$ctr1\" -- dnf install -y lighttpd\n\n## Include some buildtime annotations\nbuildah config --annotation \"com.example.build.host=$(uname -n)\" \"$ctr1\"\n\n## Run our server and expose the port\nbuildah config --cmd \"\u002Fusr\u002Fsbin\u002Flighttpd -D -f \u002Fetc\u002Flighttpd\u002Flighttpd.conf\" \"$ctr1\"\nbuildah config --port 80 \"$ctr1\"\n\n## Commit this container to an image name\nbuildah commit \"$ctr1\" \"${2:-$USER\u002Flighttpd}\"\nEOF\n\n$ chmod +x lighttpd.sh\n$ .\u002Flighttpd.sh\n```\n\n## Commands\n| Command                                              | Description                                                                                          |\n| ---------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |\n| [buildah-add(1)](\u002Fdocs\u002Fbuildah-add.1.md)               | Add the contents of a file, URL, or a directory to the container.                                    |\n| [buildah-build(1)](\u002Fdocs\u002Fbuildah-build.1.md)           | Build an image using instructions from Containerfiles or Dockerfiles.                                |\n| [buildah-commit(1)](\u002Fdocs\u002Fbuildah-commit.1.md)         | Create an image from a working container.                                                            |\n| [buildah-config(1)](\u002Fdocs\u002Fbuildah-config.1.md)         | Update image configuration settings.                                                                 |\n| [buildah-containers(1)](\u002Fdocs\u002Fbuildah-containers.1.md) | List the working containers and their base images.                                                   |\n| [buildah-copy(1)](\u002Fdocs\u002Fbuildah-copy.1.md)             | Copies the contents of a file, URL, or directory into a container's working directory.               |\n| [buildah-from(1)](\u002Fdocs\u002Fbuildah-from.1.md)             | Creates a new working container, either from scratch or using a specified image as a starting point. |\n| [buildah-images(1)](\u002Fdocs\u002Fbuildah-images.1.md)         | List images in local storage.                                                                        |\n| [buildah-info(1)](\u002Fdocs\u002Fbuildah-info.1.md)             | Display Buildah system information.                                                                  |\n| [buildah-inspect(1)](\u002Fdocs\u002Fbuildah-inspect.1.md)       | Inspects the configuration of a container or image.                                                  |\n| [buildah-mount(1)](\u002Fdocs\u002Fbuildah-mount.1.md)           | Mount the working container's root filesystem.                                                       |\n| [buildah-pull(1)](\u002Fdocs\u002Fbuildah-pull.1.md)             | Pull an image from the specified location.                                                           |\n| [buildah-push(1)](\u002Fdocs\u002Fbuildah-push.1.md)             | Push an image from local storage to elsewhere.                                                       |\n| [buildah-rename(1)](\u002Fdocs\u002Fbuildah-rename.1.md)         | Rename a local container.                                                                            |\n| [buildah-rm(1)](\u002Fdocs\u002Fbuildah-rm.1.md)                 | Removes one or more working containers.                                                              |\n| [buildah-rmi(1)](\u002Fdocs\u002Fbuildah-rmi.1.md)               | Removes one or more images.                                                                          |\n| [buildah-run(1)](\u002Fdocs\u002Fbuildah-run.1.md)               | Run a command inside of the container.                                                               |\n| [buildah-tag(1)](\u002Fdocs\u002Fbuildah-tag.1.md)               | Add an additional name to a local image.                                                             |\n| [buildah-umount(1)](\u002Fdocs\u002Fbuildah-umount.1.md)         | Unmount a working container's root file system.                                                      |\n| [buildah-unshare(1)](\u002Fdocs\u002Fbuildah-unshare.1.md)       | Launch a command in a user namespace with modified ID mappings.                                      |\n| [buildah-version(1)](\u002Fdocs\u002Fbuildah-version.1.md)       | Display the Buildah Version Information                                                              |\n\n**Future goals include:**\n* more CI tests\n* additional CLI commands (?)\n","Buildah 是一个用于构建 OCI 容器镜像的命令行工具。其核心功能包括从零开始或基于现有镜像创建容器、通过 Dockerfile 或直接操作容器文件系统来生成新的镜像，并支持 OCI 和传统 Docker 镜像格式。Buildah 无需 root 权限即可运行，提供了一种低级别的核心实用程序接口来构建镜像，同时允许集成其他脚本语言到构建过程中。该工具特别适用于需要灵活定制镜像构建流程且希望避免使用 Docker daemon 的场景，如 CI\u002FCD 环境下的自动化构建过程。","2026-06-11 04:08:28","top_language"]