Aldryn云在Windows 10,使用hyper-v和docker 1.12 rc2 beta16

有没有人在Windows 10上使用最新的docker beta和hyper-v设置aldryn云解决scheme的任何线索?

运行docker-compose -f C:\Users\Me\project\docker-compose-windows.yml build出现这些错误:

 npm ERR! fetch failed https://registry.npmjs.org/estraverse-fb/-/estraverse-fb-1.3.1.tgz npm ERR! fetch failed https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-3.0.2.tgz npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org npm ERR! fetch failed https://registry.npmjs.org/user-home/-/user-home-2.0.0.tgz npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org npm ERR! fetch failed https://registry.npmjs.org/glob/-/glob-7.0.5.tgz npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org npm ERR! fetch failed https://registry.npmjs.org/gaze/-/gaze-1.0.0.tgz npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org npm ERR! fetch failed https://registry.npmjs.org/lodash.clonedeep/-/lodash.clonedeep-3.0.2.tgz npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org npm ERR! fetch failed https://registry.npmjs.org/user-home/-/user-home-2.0.0.tgz npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org npm ERR! fetch failed https://registry.npmjs.org/glob/-/glob-7.0.5.tgz npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org npm ERR! fetch failed https://registry.npmjs.org/gaze/-/gaze-1.0.0.tgz npm WARN retry will retry, error on last attempt: Error: getaddrinfo ENOTFOUND registry.npmjs.org npm ERR! Linux 4.4.13-moby npm ERR! argv "node" "/usr/local/bin/npm" "install" "--production" npm ERR! node v0.12.14 npm ERR! npm v2.15.5 npm ERR! code ENOTFOUND npm ERR! errno ENOTFOUND npm ERR! syscall getaddrinfo npm ERR! network getaddrinfo ENOTFOUND registry.npmjs.org npm ERR! network This is most likely not a problem with npm itself npm ERR! network and is related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config' npm ERR! Please include the following file with any support request: npm ERR! /npm-debug.log ERROR: Service 'web' failed to build: The command '/bin/sh -c (cd / && npm-install-retry -- --production)' returned a non-zero code: 1 

我什至不知道这是罪魁祸首,但我偶然发现: https : //github.com/npm/npm/issues/9863

在那里提供的解决scheme给我:

 sed: can't read ./lib/utils/rename.js: No such file or directory ERROR: Service 'web' failed to build: The command '/bin/sh -c cd $(npm root -g)/npm && npm install fs-extra && sed -i -es/graceful-fs/fs-extra/ -es/fs.rename/fs.move/ ./lib/utils/rename.js' returned a non-zero code: 2 

我是否正确? 有没有人成功,你愿意/能够分享?

它看起来像你的docker虚拟机不能与外部世界交stream,或者至less它不能与其DNS服务器交谈:

 npm ERR! errno ENOTFOUND npm ERR! syscall getaddrinfo 

请在继续之前确保以下命令正常工作(按此顺序):

 docker run --rm -it busybox ping 8.8.8.8 # Tests raw TCP traffic docker run --rm -it busybox ping google.com # Tests DNS connectivity 

Aldryn还包括一个很好的工具来代表你检查这一切:

 aldryn doctor 

在大多数情况下,遇到联网问题时,重新启动Docker虚拟机有助于:

 docker-machine restart default 

但是在Hyper-V的情况下,也可能是因为缺lessnetworkingconfiguration。