Ryan-Miao / docker-yapi

Docker build and run yapi as service
288 stars 115 forks source link

请问npm的时候为什么我卡住不动了呢? #4

Closed ohohok closed 4 years ago

ohohok commented 4 years ago

Building yapi Step 1/4 : FROM node:12-alpine ---> 057fa4cc38c2 Step 2/4 : COPY repositories /etc/apk/repositories ---> Using cache ---> 3c404293437f Step 3/4 : RUN npm install -g yapi-cli --registry https://registry.npm.taobao.org ---> Running in 1b16396feb05

Ryan-Miao commented 4 years ago

自己进入容器排查

docker run -it node:12-alpine sh

image

Ryan-Miao commented 4 years ago

也可以直接进入你卡着的那个部分, 比如你的 Step 3/4 : RUN npm install -g yapi-cli --registry https://registry.npm.taobao.org ---> Running in 1b16396feb05

docker exec -it 1b16396feb05 sh

CloverQ commented 1 year ago

我也遇到这个问题了,重启一下虚拟机然后运行docker compose up就好了