Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Security warning appearing when building a Docker image from Windows against a non-Windows Docker host #20397
I am experimenting with building my own Docker image with the purpose of later building Jenkins and SonarQube dockers.
When I attempt to create a simple Dockerfile to experiment and install emacs to easily be able to edit files in bash I get the following output:
This is what my dockerfile contains:
What does this Security warning mean exactly and how can I avoid it?
More info, when I use the docker info command I get the following data:
That warning was added, because the Windows filesystem does not have an option to mark a file as 'executable'. Building a linux image from a Windows machine would therefore break the image if a file has to be marked executable.
For that reason, files are marked executable by default when building from a windows client; the warning is there so that you are notified of that, and (if needed), modify the Dockerfile to change/remove the executable bit afterwards.
There definitely NEEDS to be a switch. This helpful, and un-addressable message breaks the build when using automated build systems. If they see anything written to stderr or get a non-zero return code, that breaks the build.
If you give an error message either: A) give me a way to correct it or B) give me a way to suppress it. This needs to be fixed, this is a showstopper for those using Jenkins, TeamCity, Octopus, etc for builds.
Please re-open and address this.