Cor*_*ole 5 windows node-modules docker creators-update
我是 docker 的初学者,试图使用 Creator 的更新 bash 子系统让它在我的 Windows 10 机器上运行。我的 dockerfile 在我的 mac 上构建得很好,但是当我docker build
在 Windows 上尝试使用相同的文件时,我收到如下错误:
time="2017-08-28T14:44:36-07:00" level=error
msg="Can't add file \\\\?\\C:\\Users\\username\\Workspace\\...\\node_modules\\.bin\\nodemon
to tar: readlink \\\\?\\C:\\Users\\username\\Workspace\\...\\node_modules\\.bin\\nodemon:
The system cannot find the file specified."
Run Code Online (Sandbox Code Playgroud)
这是为我所有的 node_modules 依赖项打印出来的。我的第一个问题是:是什么触发了我所有 node_modules 的“添加”操作?这些错误信息是在我的 dockerfile 的第一行执行之前打印出来的
Step 1/25 : FROM ubuntu:14.04
Run Code Online (Sandbox Code Playgroud)
其次,这个问题是否与windows中的不同路径有关?对我来说,错误最奇怪的部分是奇怪的路径\\\\?\\C:\\Users\\username
。路径中有过多的斜杠和问号是怎么回事?
第三,就我一个人吗?还是大家在windows bash子系统上使用docker时遇到问题?
注意:我已经尝试设置 Docker 工具箱并运行快速启动终端。运行快速启动终端时出现以下错误
Error with pre-create check:
"This computer is running Hyper-V. VirtualBox won't boot a 64bits VM when Hyper-V is activated. Either use Hyper-V as a driver, or disable the Hyper-V hypervisor. (To skip this check, use --virtualbox-no-vtx-check)"
Looks like something went wrong in step ´Checking if machine default exists
´... Press any key to continue...
Run Code Online (Sandbox Code Playgroud)
所以我尝试确保从这篇文章here启用了hyper-v
注意 2:我还确保我的 C 驱动器与我的容器共享
归档时间: |
|
查看次数: |
2040 次 |
最近记录: |