Skip to content

Add switch to disable security warning for the "You are building Linux container from Windows client" scenario #29209

@sandersaares

Description

@sandersaares

If you build a Linux container from a Windows Docker client, you get this warning in stderr: SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.

See also #20397 for illustrative purposes.

It would be desirable to be able to disable this specific error, without being forced to ignore any stderr output.

Reason: we have automated build processes and we are aware of this limitation and accept it. We want to ignore it. However, because it is written to stderr, the automation considers it an error. We tried just telling it to not treat stderr as an error but this actually hid some error conditions that apparently signaled exit code 0, so this workaround may lead to actual errors not being discovered.

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