diff --git a/README.md b/README.md index 6a36808..f5172e4 100644 --- a/README.md +++ b/README.md @@ -104,8 +104,11 @@ privileged container. #### Setting up buildah and podman -If you run ansible-bender as root, you don't need to do anything. Just install -the packages and you are good to go. +If you run ansible-bender as root, you don't need to set up anything. Just +install the packages and you are good to go. This is the preferred way — +buildah and podman are much more efficient when using the in-kernel overlay +filesystem and you will encounter [less issues than with the rootless +mode](https://github.com/containers/libpod/blob/master/rootless.md). On the other hand, if you want to utilize [the rootless mode](https://github.com/containers/libpod/blob/master/docs/podman-create.1.md#rootless-containers), diff --git a/ansible_bender/builders/buildah_builder.py b/ansible_bender/builders/buildah_builder.py index e6973f6..39bafab 100644 --- a/ansible_bender/builders/buildah_builder.py +++ b/ansible_bender/builders/buildah_builder.py @@ -36,7 +36,10 @@ def pull_buildah_image(container_image): def does_image_exist(container_image): - cmd = ["podman", "image", "exists", container_image] + # cmd = ["podman", "image", "exists", container_image] + # https://github.com/containers/libpod/issues/2924 + # https://github.com/ansible-community/ansible-bender/issues/114 + cmd = ["buildah", "inspect", "-t", "image", container_image] run_cmd(cmd, print_output=True)