gpt4 book ai didi

Docker for Windows : Drive sharing failed for an unknown reason

转载 作者:行者123 更新时间:2023-12-02 19:21:12 25 4
gpt4 key购买 nike

环境:

`Windows 10 企业版 1809 17763.864

Docker 桌面社区 2.1.0.5

尝试从 D 盘共享驱动器

docker run -it -v d:/srv/busybox/demo:/var/log busybox



守护进程抛出错误为 Drive sharing failed for an unknown reason
检查 docker 日志时
[17:07:54.721][Moby              ][Info   ] [  866.663149] CIFS VFS: SMB3 encryption not supported yet
[17:07:54.757][Moby ][Info ] [ 866.698107] CIFS VFS: SMB3 encryption not supported yet
[17:07:54.797][Moby ][Info ] [ 866.729911] CIFS VFS: SMB signature verification returned error = -13
[17:07:54.835][Moby ][Info ] [ 866.770682] CIFS VFS: SMB signature verification returned error = -13
[17:07:54.841][SambaShare ][Error ] Unable to mount D drive: unexpected error: System.AggregateException: One or more errors occurred. ---> Docker.Backend.HttpBadResponseException: Exception of type 'Docker.Backend.HttpBadResponseException' was thrown.
at Docker.Backend.HttpClientExtensions.<ParseResponseBodyAsJsonAsync>d__2`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Docker.Backend.HttpClientExtensions.<PostJsonWithJsonResponseAsync>d__1`1.MoveNext()
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Docker.Backend.LifecycleClient.Mount(MountRequest req)
at Docker.Backend.SambaShare.MountInMoby(String drive, Credential cred, UserNameAndDomain info, String options, String ip)
---> (Inner Exception #0) Docker.Backend.HttpBadResponseException: Exception of type 'Docker.Backend.HttpBadResponseException' was thrown.
at Docker.Backend.HttpClientExtensions.<ParseResponseBodyAsJsonAsync>d__2`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Docker.Backend.HttpClientExtensions.<PostJsonWithJsonResponseAsync>d__1`1.MoveNext()<---

来自社区的建议已尝试
  • 创建具有 RWX 权限的本地用户驱动
  • 共享驱动器
  • 重启电脑:-P
  • 为 Windows 重置 docker
  • 在 Windows 和 Linux 容器之间切换
  • 重新安装 Docker for windows
  • 禁用防火墙/杀毒软件

  • 但没有任何帮助!

    最佳答案

    罪魁祸首是 SAMBA 加密。禁用加密后效果很好

    Bug: 无法共享 C 盘 #1637 https://github.com/docker/for-win/issues/1637

    错误:加密禁用不是选项,也不是低于 3 的 SMB #5342 https://github.com/docker/for-win/issues/5342

    但不建议这样做,因此在 Docker for windows 的当前边缘版本中已远离 SAMBA。

    因此为 Windows Edge 2.1.7.0(41536) 或更高版本安装 Docker 解决了该问题。

    您可能会面临从稳定的 2.1.0.5(当前)切换到边缘 channel

    错误:Windows 上的 Docker Desktop 无法切换到 Edge #4672 https://github.com/docker/for-win/issues/4672 (打开)

    您可以从 https://docs.docker.com/docker-for-windows/edge-release-notes/ 卸载稳定版本并下载边缘版本

    为我安装 Docker for Windows Edge 2.1.7.0(41536) 解决了这个问题。

    关于Docker for Windows : Drive sharing failed for an unknown reason,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59555010/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com