Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Kaniko saves a corrupted /bin/ directory in image #1058

@golpa

Description

@golpa

Actual behavior
v0.17.0 corrupts /bin:

$ docker run --rm -ti --entrypoint "" logstash:7.6.0 ls -l /bin/
ls: cannot access /bin/rpm: No such file or directory
total 0
c????????? ? ? ? ?            ? rpm

works correctly with v0.16.0 (and docker):

$ docker run --rm -ti --entrypoint "" logstash:7.6.0 ls -l /bin/
total 40856
-rwxr-xr-x 1 root root   41488 Aug 20 06:25 [
-rwxr-xr-x 1 root root    1661 Nov 20  2015 abs2rel
-rwxr-xr-x 1 root root   29104 Feb  4 16:35 addr2line
-rwxr-xr-x 1 root root      29 Aug  8  2019 alias
... snip ...

Expected behavior
A functioning /bin just like with v0.16.0

To Reproduce
Steps to reproduce the behavior:

  1. /kaniko/executor --context /path/to/Dockerfile/ --destination logstash:7.6.0
  2. docker run --rm -ti --entrypoint "" logstash:7.6.0 ls -l /bin/

Additional Information

  • Dockerfile:
    FROM logstash:7.6.0
    RUN /usr/share/logstash/bin/logstash-plugin install logstash-input-relp
    
  • Kaniko Image (fully qualified with digest)
    gcr.io/kaniko-project/executor:debug
    025bd79d3e06

Triage Notes for the Maintainers

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/filesystemsFor all bugs related to kaniko container filesystems (mounting issues etc)kind/bugSomething isn't workingregression

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions