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.