-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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容器不能run起来,请问有碰到的吗? #1543
Comments
报错信息? |
npm start是在容器里面的后台运行。 |
参考这个 #1431 (comment) 你拷贝代码也不对啊 |
|
FROM node:8.0.0-alpine npm install最好放在外面 我是有jenkins自动启动编译容器。 |
docker 用 aliyun 加速呗,不然肯定慢 |
速度慢的问题,配个阿里云镜像的加速器解决喽~ 备注一下:
|
所以现在没问题了?先关了 |
没有问题了 |
FROM daocloud.io/node:latest
RUN mkdir -p /data/www
WORKDIR /data/www
COPY . .
RUN npm install --registry=https://registry.npm.taobao.org
EXPOSE 7001
CMD npm start
不用docker,npm start正常
The text was updated successfully, but these errors were encountered: