Windows版Docker:如何在Docker中将映射驱动器用作共享驱动器?

时间:2018-07-01 14:50:55

标签: windows docker docker-for-windows

Windows Server 2016 Linux(高山)容器 Docker版本18.03.1-ce

我有一台Windows机器,该机器位于AD域上,我正在运行linux容器,而我的docker版本是18.03.1-ce。我正在尝试与docker共享我的驱动器,这些驱动器是从同一域中的另一台机器映射的。我们将此驱动器称为z:/,它具有UNC路径// MILKYWAY / shared_drive

映射的网络驱动器does not show up in the shared drives。当我使用-v标志尝试映射时,出现一个询问共享驱动器的对话框,我输入凭据,然后立即给我一个错误。完整的错误详细信息如下。

我在互联网上搜索了各个错误,并尝试了几乎所有解决方案。我尝试过的事情:

  • unc路径
  • 驱动器盘符路径
  • 本地帐户与域帐户
  • 一些糟糕的插件

    在带有Linux容器的Windows上无法使用映射的驱动器吗?

错误输出日志:

[04:39:36.100][NamedPipeServer][Info   ] Version()
[04:39:36.100][NamedPipeServer][Info   ] Version done in 00:00:00.
[04:39:36.101][NamedPipeServer][Info   ] Mount(All, Z, MILKYWAY\<username>:**********, Docker.Core.Settings)
[04:39:36.115][SambaShare     ][Info   ] Mount Z
[04:39:36.180][Cmd            ][Info   ] This shared resource does not exist.
[04:39:36.181][Cmd            ][Info   ] More help is available by typing NET HELPMSG 2310.
[04:39:36.181][SambaShare     ][Info   ] "Z" is not shared
[04:39:36.181][SambaShare     ][Info   ] Creating share "Z:\" as "Z" with Full Control to "MILKYWAY\<username>"
[04:39:36.246][Cmd            ][Info   ] The device or directory does not exist.
[04:39:36.246][Cmd            ][Info   ] More help is available by typing NET HELPMSG 2116.
[04:39:36.247][SambaShare     ][Error  ] Failed to create share "Z:\" as "Z" with Full Control to "MILKYWAY\<username>" with code: 2
[04:39:36.315][Cmd            ][Info   ] This shared resource does not exist.
[04:39:36.315][Cmd            ][Info   ] More help is available by typing NET HELPMSG 2310.
[04:39:36.316][SambaShare     ][Info   ] "Z" is not shared
[04:39:36.332][SambaShare     ][Info   ] Mount Z
[04:39:36.399][Cmd            ][Info   ] This shared resource does not exist.
[04:39:36.400][Cmd            ][Info   ] More help is available by typing NET HELPMSG 2310.
[04:39:36.401][SambaShare     ][Info   ] "Z" is not shared
[04:39:36.401][SambaShare     ][Info   ] Creating share "Z:\" as "Z" with Full Control to "<username>"
[04:39:36.469][Cmd            ][Info   ] The device or directory does not exist.
[04:39:36.469][Cmd            ][Info   ] More help is available by typing NET HELPMSG 2116.
[04:39:36.471][SambaShare     ][Error  ] Failed to create share "Z:\" as "Z" with Full Control to "<username>" with code: 2
[04:39:36.544][Cmd            ][Info   ] This shared resource does not exist.
[04:39:36.544][Cmd            ][Info   ] More help is available by typing NET HELPMSG 2310.
[04:39:36.545][SambaShare     ][Info   ] "Z" is not shared
[04:39:36.545][NamedPipeServer][Info   ] Mount done in 00:00:00.4440492.

0 个答案:

没有答案