我们似乎有一个工作流程来启动一个容器,并在其中运行命令并提交它。
buildah-from - Creates a new working container, either from scratch or using a specified image as a starting point.
buildah-run - Run a command inside of the container.
buildah-commit - Create an image from a working container.但是我们可以用podman做同样的事情吗?
podman-run - Run a command in a new container
podman-exec - Execute a command in a running container
podman-commit - Create new image based on the changed container这两个命令序列有什么区别?我们什么时候应该选择一个而不是另一个?
发布于 2021-01-05 08:02:42
Podman是做构建的,对于那些熟悉Docker的人来说,构建过程是一样的。可以使用
podman build使用Dockerfile进行构建,也可以运行容器并进行大量更改,然后将这些更改提交到新的图像标记中。Buildah可以被描述为与创建和管理容器映像相关的命令的超集,因此,它对图像有更细粒度的控制。Podman的build命令包含Buildah功能的一个子集。它使用与Buildah相同的代码来构建。
摘自:https://developers.redhat.com/blog/2019/02/21/podman-and-buildah-for-docker-users/
https://unix.stackexchange.com/questions/619324
复制相似问题