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
60 questions
6
votes
1 answer

How to use podman's ssh build flag?

I have been using the docker build --ssh flag to give builds access to my keys from ssh-agent. When I try the same thing with podman it does not work. I am working on macOS Monterey 12.0.1. Intel chip. I have also reproduced this on Ubuntu and…
Ruairi O'Brien
  • 1,209
  • 5
  • 18
  • 33
5
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,934
  • 4
  • 32
  • 63
5
votes
2 answers

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
  • 10,690
  • 7
  • 46
  • 74
5
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
  • 10,690
  • 7
  • 46
  • 74
4
votes
2 answers

Buildah vs Kaniko

I'm using ArgoWorkflow to automate our CI/CD chains. In order to build images, and push them to our private registry we are faced between the choice of either buildah or kaniko. But I can't put my finger on the main difference between the two. Pros…
Zehouani Alae
  • 61
  • 1
  • 5
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

How can I resolve 'Unable to find a match: buildah podman' error when installing on RHEL 8.7?

I am trying to install buildah and podman on my rhel 8.7 After running dnf install buildah podman -y I received this error. I tried to look for a solution on google but I am unable to find any. Please advise. [root@localhost tmp]# dnf install…
Lanaya O
  • 75
  • 1
  • 5
3
votes
1 answer

How can podman build support uid > 65536 in dockerfile

I have a Dockerfile and want to embed one function user (bob) which has same uid (7200720) on the working VM FROM docker.io/ubuntu:focal RUN groupadd -g 2000 robots RUN useradd -m -g 2000 -s /bin/bash -u 7200720 bob USER bob In docker, it works…
Larry Cai
  • 55,923
  • 34
  • 110
  • 156
3
votes
2 answers

Is it possible to copy a multi-OS image from one docker registry to another on a linux machine?

I need a way to copy my manifest and all related blobs/etc from a private registry to a public registry, where the images were never pushed to the public registry before. I am successfully creating a multi-arch manifest via buildah. Note that while…
Zane Claes
  • 14,732
  • 15
  • 74
  • 131
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
  • 10,690
  • 7
  • 46
  • 74
2
votes
1 answer

Can't find correct syntax to forward SSH keys

I'm trying to build a custom container with Buildah via a Dockerfile that will run some tasks in Celery, but the tasks need access to a library available in a private repository on our local Gitlab instance. It works if I copy the library from a…
wile_e8
  • 337
  • 2
  • 12
2
votes
0 answers

Podman error storing blob to file "/var/tmp/storage482056787/8": error happened during read: local error: tls: bad record MAC

I'm using dynamically provisioned Podman agents as Kubernetes pods in Jenkins helm chart. Podman agent Dockerfile is below: FROM jenkins/jnlp-agent-alpine RUN apk add podman RUN apk add openrc RUN apk --no-cache add curl RUN sed -i…
rok
  • 9,403
  • 17
  • 70
  • 126
2
votes
0 answers

Why do I get "error while applying layer: operation not permitted" with buildah in a gitlab runner pod?

Hey I have a Gitlab runner(kubernetes executor) that is building containers inside a pipeline. The pipeline runs inside a pod with the image: quay.io/buildah/stable and fails while calling buildah bud .: STEP 1/12: FROM…
iaquobe
  • 555
  • 1
  • 6
  • 23
2
votes
1 answer

Using debootstrap for iterative container configuration a la buildah's 'scratch'

In theory the idea of an iterative method of container configuration really appeals to me. In practice, I'm having a difficult time making it work, particularly in the rootless ecosystem of podman/buildah. I'm beginning get the feeling that…
user10756
  • 63
  • 4
2
votes
2 answers

Can Docker CLI, Podman and other similar tools have shared local storage for images?

I recently started using podman and realized that images pulled via docker doesn't become available for use to podman and vice-versa. For example:- If I pull the image using docker CLI, as shown below docker pull…
Rishab Prasad
  • 771
  • 1
  • 8
  • 21
1
2 3 4