Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After run kaniko in container, image is changed and part of local context stop to work #3148

Open
geisbruch opened this issue May 3, 2024 · 2 comments

Comments

@geisbruch
Copy link

Actual behavior
Im installed kaniko in alpine from public images, after run kaniko some programs in the local container stops to work

Expected behavior
Expected that kaniko runs isolated

To Reproduce
Steps to reproduce the behavior:

Create alpine image

FROM gcr.io/kaniko-project/executor:latest as kaniko-executor

FROM alpine:latest as kaniko

RUN apk --update  add libc6-compat crane git curl bash

COPY --from=kaniko-executor /kaniko/executor /kaniko/executor
COPY --from=kaniko-executor /kaniko/docker-credential-gcr /kaniko/docker-credential-gcr
COPY --from=kaniko-executor /kaniko/docker-credential-ecr-login /kaniko/docker-credential-ecr-login
COPY --from=kaniko-executor /kaniko/docker-credential-acr-env /kaniko/docker-credential-acr-env
COPY --from=kaniko-executor /etc/nsswitch.conf /etc/nsswitch.conf
COPY --from=kaniko-executor /kaniko/.docker /kaniko/.docker
COPY --from=kaniko-executor /kaniko/docker-credential-acr-env /kaniko/docker-credential-acr-env
COPY --from=busybox:1.32.0 /bin /busybox

then run the image and create a Dockerfile inside
as example
/tmp/la/Dockerfile

FROM ubuntu
RUN echo hola

Run kaniko inside the docker container

/kaniko/executor --context /tmp/la --dockerfile /tmp/la/Dockerfile  --no-push --tarPath image.tar --destination kong-dbless:latest --kaniko-dir /tmp/pe

Programs like crane or apk stops to work

Description Yes/No
Please check if this a new feature you are proposing
Please check if the build works in docker but not in kaniko
Please check if this error is seen when you use --cache flag
Please check if your dockerfile is a multistage dockerfile
@navanin
Copy link

navanin commented May 8, 2024

Hey, i have exactly the same problem.

Did you manage to find a solution?

@geisbruch
Copy link
Author

Nop, We ended running kaniko in a separately job :S

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants