I got this error building the container on docker-dev02:
npm ERR! code ECONNRESET
npm ERR! network aborted
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'
which was solved by adding these lines to the dockerfile before npm install
RUN npm config get proxy
RUN npm config rm proxy
RUN npm config rm https-proxy
This implies that the base npm+node image we are using comes with a preconfigured proxy, which needs to be removed before we can use npm.
This may not be an issue once we are set up on dockerhub, but until then, it might be nice to add these lines to the dockerfile.
I got this error building the container on docker-dev02:
which was solved by adding these lines to the dockerfile before
npm install
This implies that the base npm+node image we are using comes with a preconfigured proxy, which needs to be removed before we can use npm.
This may not be an issue once we are set up on dockerhub, but until then, it might be nice to add these lines to the dockerfile.