Skip to content

Support retaining file capabilities in COPY/ADD #20435

Description

@mrunalp

When one tries to copy in a binary in a Dockerfile that has some file capabilities set, then those capabilities are lost during the copy. This requires the Dockerfile author to RUN setcap </path/to/binary> and doing that results in a copy up of the file essentially doubling the storage required to store the binary. This can be avoided if the file capabilities are applied during COPY/ADD saving disk space.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/builderBuildkind/enhancementEnhancements are not bugs or new features but can improve usability or performance.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions