cloudsploit icon indicating copy to clipboard operation
cloudsploit copied to clipboard

docker 无法构建

Open Alexro0t opened this issue 2 years ago • 0 comments
trafficstars

└─# docker build . -t cloudsploit:0.0.1 1 ⨯ Sending build context to Docker daemon 202.7MB Step 1/7 : FROM node:lts-alpine3.12 ---> 7ae9aa692723 Step 2/7 : ARG PACKAGENAME=cloudsploit ---> Using cache ---> 40ecb3439945 Step 3/7 : COPY . /var/scan/cloudsploit/ ---> Using cache ---> ed501423d1f1 Step 4/7 : RUN cd /var/scan && npm init --yes && npm install ${PACKAGENAME} ---> Running in 367f2805bb07 Wrote to /var/scan/package.json:

{ "name": "scan", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo "Error: no test specified" && exit 1" }, "keywords": [], "author": "", "license": "ISC" }

npm ERR! code EAI_AGAIN npm ERR! syscall getaddrinfo npm ERR! errno EAI_AGAIN npm ERR! request to https://registry.npmjs.org/cloudsploit failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2023-02-09T00_08_01_106Z-debug.log The command '/bin/sh -c cd /var/scan && npm init --yes && npm install ${PACKAGENAME}' returned a non-zero code: 1

Alexro0t avatar Feb 09 '23 00:02 Alexro0t