1. 程式人生 > >docker-6-坑記錄(持續更新)

docker-6-坑記錄(持續更新)

windows 下 dokcer build 後出現

windows 下 dokcer build 後出現許可權設定問題
這個許可權是指哪個目錄,然後怎麼設定?

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.

windows本身是通過安裝Linux虛擬機器來支援Docker容器化解決方案的,這些的許可權指的是我們建立的虛擬主機的目錄許可權。

劃重點 :當你發現這個坑的時候,其實並不是坑,是告訴我們在window配置的映象的映象的許可權有點大,許可權大點也沒關係,看運維人員要求,實際上不是bug。