https://rancher.com/ logo
Title
r

ripe-grass-75099

07/15/2022, 1:25 PM
i know this is a docker build thing but I'm curious as to why I get this warning when using rancher desktop as my docker host but not docker desktop? (WSL2.0) and is there a way to supress it when using Rancher?
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.
k

kind-iron-72902

07/15/2022, 4:53 PM
What triggers that warning message?
r

ripe-grass-75099

07/15/2022, 4:55 PM
i'm running a docker build on windows but I'm using rancher desktop as my docker host against WSL 2.0
so the security warning makes sense but as Docker Desktop does the same thing I'm wondering why using rancher generates the message but docker desktop doesn't. I'd rather not to get the warning at all
k

kind-iron-72902

07/15/2022, 5:00 PM
I assume you're just running
docker build ...
in a command/powershell session, correct? I see discussion on this message spanning 5 years at https://github.com/moby/moby/issues/20397#issuecomment-185471832 But I'm actually not familiar enough with Docker Desktop to be able to explain the difference. It could be that that app processes the output from its
dockerd
server before shuttling it back to the client.