Questions tagged [kaniko]

kaniko is a tool to build container images from a Dockerfile, inside a container or Kubernetes cluster.

kaniko is a tool to build container images from a Dockerfile, inside a container or Kubernetes cluster.

118 questions
2
votes
2 answers

Error checking push permissions when trying to push to private insecure docker registry

I am using gitlab runner on kubernetes, kaniko to push image to docker private registry(insecure), how could I give kaniko push permissions? I tried --insecure-registry, --skip-tls-verify params but there is the same error build: stage: build …
2
votes
0 answers

Knative image build and push fails with acces denied

I'm trying to build and push a docker image with Knative. I have a maven java application and a multistaging Dockerfile that builds and runs the application: WORKDIR /usr/app COPY pom.xml ./ COPY src/ ./src/ RUN mvn package FROM…
Sergii Bishyr
  • 8,331
  • 6
  • 40
  • 69
2
votes
1 answer

How to use a kaniko based gitlab-runner to build a node.js image?

I am using a self hosted Gitlab repository to push my code. The code contains a Dockerfile that successfully creates a docker-image locally on my machine. My intention is now to automate this build process and integrate the docker-build in a…
Cheesepie
  • 31
  • 3
2
votes
3 answers

error resolving dockerfile path: please provide a valid path to a Dockerfile within the build context with --dockerfile

apiVersion: v1 kind: Pod metadata: name: kaniko spec: containers: - name: kaniko image: gcr.io/kaniko-project/executor:latest args: - "--context=dir:///workspace" - "--dockerfile=/workspace/Dockerfile" -…
user8024713
  • 61
  • 1
  • 5
2
votes
1 answer

Pull, Tag and Push an Image from Registry Y to Registry X

Currently, our CI/CD Environment is cloud based in Kubernetes. Kubernetes Cloud Providers recently removed the docker deamon, due to performance advantages. For example Google Kubernetes Engine or IBM Cloud Kubernetes only feature an Containerd…
2
votes
1 answer

Why isn't Kaniko able to push multi-stage Docker Image?

Building the following Dockerfile on GitLab CI using Kaniko, result in the error error pushing image: failed to push to destination eu.gcr.io/stritzke-enterprises/eliah-speech-server:latest: Get https://eu.gcr.io/...: exit status 1 If I remove the…
Dennis Stritzke
  • 5,198
  • 1
  • 19
  • 28
1
vote
1 answer

Kaniko reset build context in Gitlab pipeline

I detected following problem with Kaniko in GitLab CI: Lets say I have this Dockerfile: FROM nginx:latest RUN mkdir test Now I want to create two images from this Dockerfile. When building the second image it fails saying that the directory has…
Moritz
  • 307
  • 1
  • 4
  • 10
1
vote
2 answers

readlink: unrecognized option: m

I have the following Dockerfile. FROM debian:10.7 ARG DEBIAN_FRONTEND=noninteractive RUN echo "Acquire::http::Proxy \"${HTTP_PROXY}\";" >> /etc/apt/apt.conf.d/50proxy && echo "Acquire::https::Proxy \"${HTTPS_PROXY}\";" >>…
Stefan Neacsu
  • 653
  • 3
  • 12
1
vote
1 answer

Kaniko do not use cache options

I am trying to use the --cache-repo option of the kaniko executor but I see that it does not use the cache that I saved in ECR/AWS and the gitlab log returns this; Checking for cached layer…
1
vote
2 answers

PIP3 installs a lot of other folders too when using requirements.txt making the build fail due to disk space issues

I'm trying to set up a Docker container (RHEL8) with Kaniko. IN the Dockerfile I specified to install Python3.8 and PIP3 to install Python libraries that were requested for the specific container. requirements.txt lists about 9 libraries (joblib,…
Nysa-522
  • 49
  • 3
1
vote
1 answer

Push existing tarball image with kaniko

I want to build a Docker image (tarball) in my GitLab CI pipeline using kaniko, then scan it with trivy and push it to an AWS ECR using kaniko. Step 1: kaniko build (tarball) Step 2: trivy scan Step 3: kaniko push (to AWS ECR!) Unfortunately I…
Stefan
  • 1,253
  • 2
  • 12
  • 36
1
vote
0 answers

Passing Airflow Context to init_container in KubernetesPodOperator

Airflow's KubernetesPodOperator provides an init_containers parameter, with which you can specify kubernetes init_containers. However init_containers expects a list of kubernetes.models.V1Container, and I don't see any way to pass airflow context…
ForeverWintr
  • 5,492
  • 2
  • 36
  • 65
1
vote
0 answers

How Kaniko images be built and pushed to AWS ECR via Jenkins pipelines

I get an empty preload of credentials when trying to push the kaniko image to AWS ECR loaded credentials that populate and push the kaniko image to AWS ECR
1
vote
0 answers

Kaniko And Proxy Set Up

Server where runners for my pipeline which runs on GitLab are rigistered is behined proxy. I followed the documentation so that I can set up the build of image with Kaniko behind the proxy, but I still get an error which based on documentation is…
Milica Nikolić
  • 155
  • 2
  • 10
1
vote
1 answer

GitLab Predefined CI/CD variable CI_REGISTRY_IMAGE empty

I'm trying to use Kaniko to build/push my docker images to GitLab Container Registry (GitLab self-managed 15.3.0, with docker runner): https://docs.gitlab.com/ee/ci/docker/using_kaniko.html#building-a-docker-image-with-kaniko Command being executed…
Sylvio Carota
  • 11
  • 1
  • 3