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

跑步时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

那里提供的解决方案给了我:
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 -e s/graceful-fs/fs-extra/ -e s/fs.rename/fs.move/ ./lib/utils/rename.js' returned a non-zero code: 2

我走对了吗?有人成功了吗?您愿意/愿意分享吗?

最佳答案

看来您的Docker VM无法与外界对话,或者至少它无法与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 VM有助于:
docker-machine restart default

但是对于Hyper-V,这也可能是因为缺少网络配置。

关于docker - Windows 10上的Aldryn Cloud,使用hyper-v和docker 1.12 rc2 beta16,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/37977104/

10-12 12:27