簡體   English   中英

Windows 10上的Aldryn Cloud,使用hyper-v和docker 1.12 rc2 beta16

[英]Aldryn cloud on windows 10, using hyper-v, and docker 1.12 rc2 beta16

有沒有人提供使用最新的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,這也可能是因為缺少網絡配置。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM