Error executing docker build - Skills Network Labs
I am getting an error when executing the basic docker build command for the docker exercise lab: docker build . -t myimage:v1
Sending build context to Docker daemon 517.6kB
Step 1/6 : FROM node:9.4.0-alpine
---> b5f94997f35f
Step 2/6 : COPY app.js .
---> Using cache
---> ed0019a9a473
Step 3/6 : COPY package.json .
---> Using cache
---> ec470aa7601a
Step 4/6 : RUN npm install && apk update && apk upgrade
---> Running in 7bea63dd2c37
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! network request to https://registry.npmjs.org/express failed, reason: read ECONNRESET
npm ERR! network This is a problem 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! A complete log of this run can be found in:
npm ERR! /root/.npm/logs/2021-07-27T001936935Z-debug.log
-
SZC commented
me too.
I try to :
1.
- npm config set registry https://registry.npmjs.org/ &&\
- npm config set strict-ssl false &&\2.or :
- npm config set registry http://registry.npmjs.org/ &&\3.not sure the proxy address
- npm config set proxy http://proxyip:proxyport
- npm config set https-proxy http://proxyip:proxyportAny ideas?