运行一个简单的docker测试。
docker run --rm -v c:/Users:/data alpine ls -al /data
产生以下输出。
total 4
drwxr-xr-x 2 root root 40 Oct 19 09:02 .
drwxr-xr-x 1 root root 4096 Oct 19 09:05 ..
该目录为空,在Windows中包含用户。
修改
此外,查看docker日志文件,我看到以下内容:
[11:11:02.873][SambaShare ][Info ] Creating share "C:\" as "C" with Full Control to "QXV0615"
[11:11:02.957][Cmd ][Info ] C was shared successfully.
[11:11:03.005][Cmd ][Info ] Share name C
[11:11:03.005][Cmd ][Info ] Path C:\
[11:11:03.005][Cmd ][Info ] Remark
[11:11:03.005][Cmd ][Info ] Maximum users No limit
[11:11:03.005][Cmd ][Info ] Users
[11:11:03.005][Cmd ][Info ] Caching Caching disabled
[11:11:03.006][Cmd ][Info ] Permission W9\QXV0615, FULL
[11:11:03.006][Cmd ][Info ] The command completed successfully.
[11:11:03.009][SambaShare ][Info ] "C" is shared
[11:11:03.011][SambaShare ][Error ] Unable to validate cred: Invalid username or password
[11:11:03.011][SambaShare ][Info ] Removing share C
[11:11:03.053][NamedPipeClient][Info ] Received response for Mount
似乎存在samba凭证问题?如何修改凭据?
答案 0 :(得分:0)
VPN问题
连接CISCO VPN时出现问题。 连接VPN时,卷将不起作用。我在这里尝试过建议,但没有骰子!
https://github.com/boot2docker/boot2docker/issues/628
https://github.com/docker/for-win/issues/360