问题描述
在Windows 10上通过Windows Docker容器访问符号链接时出现以下错误:
> type SymLinkTest.txt
The symbolic link cannot be followed because its type is disabled
> DIR
Directory of C:\mnt
<DIR> .
<DIR> ..
<SYMLINK> SymLinkTest.txt [subdir\SymLinkTest.txt]
在两个Windows实例上都设置了以下内容:
> fsutil behavior query SymlinkEvaluation
Local to local symbolic links are enabled.
Local to remote symbolic links are enabled.
Remote to local symbolic links are enabled.
Remote to remote symbolic links are enabled.
我已经验证了相应的注册表项(HKEY_LOCAL_MACHINE\SYstem\CurrentControlSet\Control\FileSystem
)。
使用以下docker run
命令:
docker run ^
--interactive ^
--mount type=bind,source="%CD%",target="C:\mnt" ^
--name "SymLinkTest" ^
--rm ^
--tty ^
--workdir "C:\mnt" ^
"%IMAGE%"
基本图片为mcr.microsoft.com/windows/servercore:ltsc2019
。
关于问题原因或解决方法的任何想法? 谢谢。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)