Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
5 changes: 4 additions & 1 deletion ansible_bender/builders/buildah_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down