[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-5133":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":16,"stars7d":16,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":18,"rankGlobal":10,"rankLanguage":10,"license":19,"archived":20,"fork":20,"defaultBranch":21,"hasWiki":20,"hasPages":20,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":29,"readmeContent":30,"aiSummary":31,"trendingCount":16,"starSnapshotCount":16,"syncStatus":32,"lastSyncTime":33,"discoverSource":34},5133,"buildah","containers\u002Fbuildah","containers","A tool that facilitates building OCI images.","https:\u002F\u002Fbuildah.io",null,"Go",8808,897,94,206,0,36,39.86,"Apache License 2.0",false,"main",[23,24,7,25,26,27,28],"container","container-image","docker","oci","oci-image","podman","2026-06-12 02:01:08","![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（Open Container Initiative）镜像的命令行工具。它支持从零开始或基于已有镜像创建容器，也可以通过Dockerfile指令来生成新镜像，并且这些镜像可以是OCI标准格式或传统的Docker格式。Buildah允许用户挂载和卸载工作容器的根文件系统进行修改，使用更新后的文件系统层创建新镜像，同时提供了删除和重命名本地容器与镜像的功能。该工具完全用Go语言编写，无需以root权限运行即可完成所有操作，非常适合需要灵活构建容器镜像的开发者或者希望集成其他脚本语言到构建流程中的团队使用。",2,"2026-05-29 03:05:58","top_language"]