docker - windows 下 dokcer build 后出现权限设置问题

查看:1709
本文介绍了docker - 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容器化解决方案的,这些的权限指的是我们创建的虚拟主机的目录权限。

//如果我们的虚拟名为default,进入之后用chmod命令对相应的目录进行权限操作
docker-machine ssh defualt

这篇关于docker - windows 下 dokcer build 后出现权限设置问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆