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
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
  • 14,644
  • 21
  • 71
  • 114
0
votes
0 answers

Trying to pull, tag and push images using buildah in gitlab-ci pipeline

I'm trying to write a script for a gitlab-ci pipeline to automate the process of pulling an image, tagging it and pushing it to my custom registry. I'm using buildah commands to do this and I keep getting errors. Can someone tell me how I need to…
LARA
  • 1
  • 1
0
votes
0 answers

Why does bash wildcard * not work in a buildah run command?

While attempting to build an image via Buildah from CentOS:latest, yum wouldn't complete commands due to "no URLs in mirrorlist," so I added the following to the Dockerfile RUN sed -i -e "s;mirrorlist=;#mirrorlist=;g" -e…
Tri Pi
  • 1
0
votes
0 answers

How to use a Variable from a python script in gitlab variables?

I am running a python code, which has few variables. The script is running inside a container through buildah, which is running in a gitlab stage. buildah run $containerId I want to extract a variable from that python script and use it in another…
0
votes
0 answers

CicleCI trouble with buldah build

There was a problem with the image build in CircleCI, I don't understand why it doesn't work with the ruby ​​image Here proplem - buildah bud -f ./Dockerfile -t hiq-intelligence-api:83948762 STEP 1/10: FROM ruby:3.2.1 ? Please select an image: …
ggg
  • 13
  • 2
0
votes
0 answers

Building a container image using Podman gives Error: kernel does not support overlay fs:

While building a container image using Podman, I am facing the below error time="2023-06-01T06:15:25Z" level=warning msg="\"/\" is not a shared mount, this could cause issues or missing mounts with rootless containers" Error: kernel does not support…
0
votes
0 answers

Buildah/podman usage for adding the annotations to the multi-arch manifest

Past few days I have been struggling with the multi-arch manifest annotation. I use buildah/podman for creating my images, but I cannot discover a way how to add the common org.opencontainers.image.description annotation to the manifest defining…
vookimedlo
  • 1,209
  • 12
  • 24
0
votes
0 answers

Building multi arch .NET images with buildah

I'm maintaining an .net 6 web api application. It's being deploy as a docker/OCI image built using buildah. Until now there's only been built images for amd64. A few member of our team is using Macs with apple silicon, and would like to be able to…
ComkeenDk
  • 181
  • 1
  • 1
  • 8
0
votes
2 answers

podman -- how can I remove the top layer of a container image?

I have an old image, may its name be B:latest. It has been built on top of another image, may its name be A:latest. I have still the script that has been used for building. It is something like that: conta=$(buildah from A:latest) buildah run $conta…
Donat
  • 4,157
  • 3
  • 11
  • 26
0
votes
1 answer

How to run Wasm module with podman + crun?

I am trying to use podman to run a Wasm module as shown here, but I keep getting the error "Exec format error". I have a Wasm module named "hellor.wasm" which executes correctly using both wasmer and wasmtime. I am running podman on Rocky Linux…
Tony Iams
  • 21
  • 1
0
votes
1 answer

redhat-actions/buildah-build@v2 failure while performing build from Containerfile

I'm trying to setup github workflow for building image and pushing it to the registry using redhat-actions actions: workflow.yaml name: build-maven-runner on: workflow_dispatch: jobs: build-test-push: outputs: image-url: ${{…
lpkej
  • 445
  • 6
  • 23
0
votes
0 answers

github action buildah fails to pull docker image

running buildah github action to build the container below FROM docker.io/library/dart:stable AS build COPY . /app WORKDIR /app RUN dart compile exe ./bin/server.dart -o ./server FROM scratch COPY --from=build /runtime/ / COPY --from=build /app/…
Francesco Iapicca
  • 2,618
  • 5
  • 40
  • 85
0
votes
2 answers

podman container MySQL container - access denied for user 'root'@'localhost'

I am building a MySQL image using buildah bud -f .podman/MySQL.conf -t localhost/mysql:mushroom and the following dockerfile (located at .podman/MYSQL.conf) FROM mysql:8.0 …
Roger Creasy
  • 1,419
  • 2
  • 19
  • 35
0
votes
2 answers

Adding annotation/label to OCI container-image without creating the container first

For adding some annotations/labels to a image, we first have to create the container from the image, and then we can add some annotations/labels using buildah-config: buildah-config [options] containerID But this requires first creating a container…
0
votes
0 answers

ECR and Buildah push task using Tekton

I would like to use the buildah task from Tekton hub in order to build and push to ECR. It seems like there's an issue with the ECR token provided in my previous task. You can see the error in the image below: "Error: writing blob: Post…