Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行docker搭建时遇到问题 #17

Closed
BigSkidderHyPhen opened this issue Feb 25, 2021 · 8 comments
Closed

执行docker搭建时遇到问题 #17

BigSkidderHyPhen opened this issue Feb 25, 2021 · 8 comments

Comments

@BigSkidderHyPhen
Copy link

以下是报错:
root@ruleaker:~/Desktop/linglong-master# docker-compose up -d
/usr/local/lib/python2.7/dist-packages/paramiko/transport.py:33: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
from cryptography.hazmat.backends import default_backend
Building web
Step 1/11 : FROM node:latest as build-stage
---> 34c1219e2da7
Step 2/11 : MAINTAINER drunk_kk
---> Using cache
---> c83cdc2c5bcd
Step 3/11 : RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
---> Running in 3023c47a1f41
npm ERR! code EAI_AGAIN
npm ERR! syscall getaddrinfo
npm ERR! errno EAI_AGAIN
npm ERR! request to https://registry.npm.taobao.org/cnpm failed, reason: getaddrinfo EAI_AGAIN registry.npm.taobao.org

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-02-25T03_48_44_817Z-debug.log
ERROR: Service 'web' failed to build: The command '/bin/sh -c npm install -g cnpm --registry=https://registry.npm.taobao.org' returned a non-zero code: 1

以下是npm以及cnpm版本
root@ruleaker:# cnpm -v
cnpm@6.1.1 (/usr/local/lib/node_modules/cnpm/lib/parse_argv.js)
npm@6.14.11 (/usr/local/lib/node_modules/cnpm/node_modules/npm/lib/npm.js)
node@12.20.1 (/usr/bin/node)
npminstall@3.28.0 (/usr/local/lib/node_modules/cnpm/node_modules/npminstall/lib/index.js)
prefix=/usr/local
linux x64 5.7.0-kali1-amd64
registry=https://r.npm.taobao.org
root@ruleaker:
# npm -v
7.5.6

环境:
VMware虚拟机 Kali 2020.1
桥接模式
网络是高中校园网屏蔽了一些网站比如p站 但是淘宝是上的去的 应该不是代理问题, 额 语言不够严谨请见谅 高一学生 还需要多多学习 需要前辈指点帮助

@BigSkidderHyPhen
Copy link
Author

好像版本那里出现了什么格式问题 请忽略删除线

@awake1t
Copy link
Owner

awake1t commented Feb 25, 2021

已经更新部署方式,去掉了拉取npm的方式。分为本地部署、服务器部署。

@kN6jq
Copy link

kN6jq commented Feb 25, 2021

证实成功,大哥强!
image

@awake1t
Copy link
Owner

awake1t commented Feb 25, 2021

感谢反馈~

@BigSkidderHyPhen
Copy link
Author

emmm出了一个很迷惑的问题 请问这是js没加载出来 还是我配置不对?
image

@awake1t
Copy link
Owner

awake1t commented Feb 25, 2021

emmm出了一个很迷惑的问题 请问这是js没加载出来 还是我配置不对?
image

你用命令替换的截图还有吗。 浏览器 f12 , network 的截图给我下。 多给点细节

@BigSkidderHyPhen
Copy link
Author

请问看得到吗 我这边image好像都是裂开的 我再发一次吧
image
image

@awake1t
Copy link
Owner

awake1t commented Feb 25, 2021

辛苦加下我微信 drunk_kk

@awake1t awake1t closed this as completed Feb 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants