Podman対Buildah:ビルド、実行、およびコミット - 対Podmanの実行、実行、およびコミット?

Podman対Buildah:ビルド、実行、およびコミット - 対Podmanの実行、実行、およびコミット?

コンテナを起動し、コンテナでコマンドを実行して送信するワークフローがあるようです。

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

これら2つのコマンドシーケンスの違いは何ですか?いつ他のものよりも1つを選択する必要がありますか?

ベストアンサー1

Podmanはビルドを行い、Dockerに精通しているユーザーの場合、ビルドプロセスは同じです。 Dockerfileを使用してビルドすることも、 podman buildコンテナを実行してさまざまな変更を適用してから、その変更を新しいイメージタグにコミットすることもできます。 Buildahは、コンテナイメージの作成と管理に関連するコマンドの親セットとして説明できるため、イメージをより細かく制御できます。 Podmanのbuildコマンドには、Buildah機能のサブセットが含まれています。 Buildahと同じコードを使用してビルドされます。

ソース:https://developers.redhat.com/blog/2019/02/21/podman-and-buildah-for-docker-users/

おすすめ記事