问答详情
源自:5-1 第一个docker镜像

It is recommended to double check and reset permissions for sensitive files and directories.

你好,我在build Dockerfile时,出现这个权限错误,请问怎么解决,我是在Windows上运行的

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.

stat /mnt/sda1/var/lib/docker/aufs/mnt/1178698b69172a2369843e2e0bfcae5d057dcfb97ad59fadd665c037c160a509/usr/local/tomcat/webapps/crawlercontainer.war: not a directory


提问者:zhengdunhao 2017-06-08 10:09

个回答

  • joy_xu
    2017-06-11 12:10:51

    请,尝试一下:

    windows本身是通过安装Linux虚拟机来支持Docker容器化解决方案的,这些的权限指的是我们创建的虚拟主机的目录权限。

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

    docker-machine ssh defualt

    ---注:刚开始看呢,具体还没有上手操作,希望对你的问题有参考价值。