Missing files in image built with Kaniko #2336
Labels
area/filesystems
For all bugs related to kaniko container filesystems (mounting issues etc)
area/layers
categorized
differs-from-docker
issue/missing-files
kind/bug
Something isn't working
priority/p0
Highest priority. Break user flow. We are actively looking at delivering it.
works-with-docker
Actual behavior
After building an image of given Dockerfile the java is missing in the image. Exactly same Dockefile built with Docker works fine. Interesting part is that adding
RUN /usr/bin/java --version
actually works and prints java version, but somehow finally the java is not in the image. It is also seen by size of an image. Incase of Docker, the size is around 650 MB, while when building with Kaniko, with exactly same artifacts it is ~100 MB lessExpected behavior
I would like to have all installed packages during building an image to be inside when running a container
To Reproduce
Steps to reproduce the behavior:
Additional Information
Contents of
files/srv/entrypoint.sh
Contents of
files/env
andartifacts
might be anything as modifiec version ofentrypoint.sh
does not use it.Parameters for
ARG
may be anything as/srv/entrypoint.sh
does not use them (I didn't wanted to affect reproducibility of this issue and I couldn't test reproducible Dockerfile without extra parameters)Image and tag:
gcr.io/kaniko-project/executor:v1.9.1-debug
Digest:
sha256:ac169723b2076f9d5804f4bc05c98397e286da6fdcdd5a09fdc179f06ccb3be1
--cache
flagThe text was updated successfully, but these errors were encountered: