我尝试在Docker Windows上创建目录连接以创建8.3.但它失败了,下面的错误信息.
D:\data\docker\sample>docker build -t sample .
Sending build context to Docker daemon 1.272GB
Step 1/4 : FROM microsoft/windowsservercore
---> 2cddde20d95d
Step 2/4 : RUN fsutil.exe behavior set disable8dot3 0
---> Running in ec6e7cc09ec6
The registry state is now: 0 (Enable 8dot3 name creation on all volumes).
---> 53805bc21858
Removing intermediate container ec6e7cc09ec6
Step 3/4 : RUN mklink /J "C:\PROGRA~1" "C:\Program Files"
---> Running in 2116f2070e6a
Junction created for C:\PROGRA~1 <<===>> C:\Program Files
re-exec error: exit status 1: output: time="2017-10-03T16:15:54+09:00" …Run Code Online (Sandbox Code Playgroud) 我尝试使用 Docker windows 更改卷上文件/文件夹的权限。但出乎意料的是,权限没有改变。
环境: 主机:Windows 10 Pro Docker 版本 17.09.0-ce,构建 afdb6d4
重现步骤:
Dockerfile:
FROM microsoft/windowsservercore
CMD [ "powershell" ]
Run Code Online (Sandbox Code Playgroud)
输出:
D:\data\docker\sample>docker build -t sample .
Sending build context to Docker daemon 1.272GB
Step 1/2 : FROM microsoft/windowsservercore
---> 2cddde20d95d
Step 2/2 : CMD powershell
---> Running in dd207fe8b262
---> e0203df155cd
Removing intermediate container dd207fe8b262
Successfully built e0203df155cd
Successfully tagged sample:latest
D:\data\docker\sample>docker run -d --name sample --mount type=volume,source=sample_volume,target=C:/data sample ping -t localhost
5a21f41d63de321e912ec3b99010a062d2e04d5f99145c6cd8bf649d3fbbebf1
D:\data\docker\sample>docker exec …Run Code Online (Sandbox Code Playgroud)