kaniko
kaniko copied to clipboard
After run kaniko in container, image is changed and part of local context stop to work
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 |
|