Questions tagged [buildah]

Buildah is a tool and library for building Open Container Initiative (OCI) container images.

Buildah - a tool that facilitates building Open Container Initiative (OCI) container images

The Buildah package provides a command line tool that can be used to :

  • create a working container, either from scratch or using an image as a starting point
  • create an image, either from a working container or via the instructions in a Dockerfile
  • images can be built in either the OCI image format or the traditional upstream docker image format
  • mount a working container's root filesystem for manipulation
  • unmount a working container's root filesystem
  • use the updated contents of a container's root filesystem as a filesystem layer to create a new image
  • delete a working container or an image
  • rename a local container
27 questions
4
votes
2 answers

How do I get a podman/buildah container to run under CentOS on GCE?

1. Summarize the problem I am following this simple tutorial from Developers RedHat to get a simple node/express container working. I cannot get a container to run under a CentOS 7 VM on GCE. I have a CentOS 7 GCE virtual machine, where I have…
3
votes
1 answer

Run buildah within gitlab-ci

I want to use buildah from gitlab-ci, in order to build an image, run a container from it and do some tests against it. My current gitlab-ci is: tests: tags: - docker image: quay.io/buildah/stable stage: test variables: …
Rolintocour
  • 2,416
  • 1
  • 23
  • 44
3
votes
1 answer

How to build a container image from scratch as a non-root user?

With buildah I am trying to build a container image that should only contain the program cowsay and its dependencies. I am doing this on a Fedora 29 computer where I don't have root permissions. Instead of using a Dockerfile and the command buildah…
Erik Sjölund
  • 9,109
  • 7
  • 34
  • 60
2
votes
1 answer

How to run podman and buildah without writing to home directory?

There is almost no disk space left in my home directory but I have a lot of disk space in the directory /scratch/tmpexperiment. That directory is now empty. I would like to try out the commands podman and buildah (just to experiment and learn).…
Erik Sjölund
  • 9,109
  • 7
  • 34
  • 60
2
votes
3 answers

How to reset podman and buildah after experimenting as a non-root user?

A non-root user has been experimenting with running podman and buildah commands but would now just want to reset everything to as it was before starting the experiment (i.e. all container images and containers should be deleted together with the…
Erik Sjölund
  • 9,109
  • 7
  • 34
  • 60
1
vote
1 answer

Unable to locate package buildah

I am trying to build Ubuntu image with a possibility to build Docker images on it. The tool that I want to use for it is buildah. However when my docker build executes the installation command: sudo apt-get -y install buildah I get this error:…
Alex Barysevich
  • 373
  • 4
  • 12
1
vote
1 answer

How can I verify that my buildah container image was actually created in my Tekton Task

I'm working on creating a Tekton pipeline on my Kind cluster. I have a Task where the first step builds a container image using buildah. And now I want to verify that the container image was actually created. So in the next step, I try to "view" my…
1
vote
0 answers

what is a useable base image for ansible-bender based on debian?

I want to build a docker image with ansible-bender which is the recommended way with ansible v2.10, ansible-container is deprecated. So... at first i thought ok i just use the debian:buster-slim image as base from docker hub --- - name: whatever …
1
vote
0 answers

Podman 1.6 bind mount creation issue

I have updated to podman 1.6.4 on Centos 8. I'm trying to run the container: $ podman run -ti -e DISPLAY --rm --security-opt=label=disable -v /tmp/.X11-unix:/tmp/.X11-unix -v /dev/dri:/dev/dri -v /run/media:/media:ro,slave --net=slirp4netns…
Pasha Qu
  • 11
  • 2
1
vote
1 answer

Formatting a Go date in a bash-friendly manner

Using buildah, I can find out the date my image was built at with this call: buildah images --format '{{.CreatedAt}}' my_image The --format argument is a Go template, as described for a related command. This returns: Nov 13, 2018 08:04 As far as I…
Ken Y-N
  • 12,690
  • 21
  • 62
  • 98
0
votes
1 answer

Not enough space to yum install in a rhel7 ubi podman container

I am trying to install multiple pkgs to build a jenkins agent container off of a rhel7 ubi. I keep running into a 'not enough disk space' error during the yum install steps while building the image. I know podman uses overlayfs which I thought is…
0
votes
1 answer

Using buildah to create OCI images, how does one create an OCI "Bundle" image that can be passed directly to crun

Using Buildah, I can create images for multiple architectures, and populate them trivially, and run the containers at will using buildah. An embedded project, requires that I create an OCI "BUNDLE" (with config.json and mounted rootfs) which can be…
Rob Sciuk
  • 1
  • 1
0
votes
0 answers

Unable to push image to private registry with podman

Getting the following error when trying to push an image to our private harbor registry Error: Error copying image to the remote destination: Error reading blob sha256:f4e89ac0ce76ce2e69a371e66d372a1d67ce04707527634e4af782da63002b34: error creating…
0
votes
1 answer

Why am I not able to delete a directory when building a container with podman?

I am building a custom image with rootless podman from a Dockerfile within a CI/CD pipeline in GitLab. In this container, I would like to remove a directory to slim down the size of the resulting image. For example like this: FROM ubuntu:20.04 #…
L. Resch
  • 1
  • 1
0
votes
0 answers

Caching buildah images (base + created) using github actions/cache

I want to cache the buildah images so that they are not pulled every time using github actions/cache. Can you please help me understand what layers should be cached. I started with ~/var/lib/containers and /var/lib/containers but that did not…
himanshu_mps
  • 119
  • 8
1
2