![]() How should I configure the proxy for the build of this image in docker-compose ? I've tried several tutorials, but I did not succeed. Npm ERR! /root/.npm/_logs/T15_32_58_226Z-debug.logĮRROR: Service 'node1' failed to build: The command '/bin/sh -c npm update' returned a non-z Npm ERR! A complete log of this run can be found in: Npm ERR! network 'proxy' config is set properly. ![]() Npm ERR! network If you are behind a proxy, please make sure that the The only reliable solution I found for Windows was by setting the environment variables you listed and actually removing all proxy values from npm (set proxy, https-proxy and httpsproxy all to null in your. Npm ERR! network In most cases you are behind a proxy or have bad network settings. Npm ERR! network This is a problem related to network connectivity. Npm ERR! network tunneling socket could not be established, cause=connect ECONNREFUSED 127.0 Step 8/12 : RUN npm config set https-proxy -> Running in 3d9376ff8574 Removing intermediate container 1d9af892155c There are no other projects in the npm registry using config-proxy. Start using config-proxy in your project by running npm i config-proxy. Latest version: 1.7.0, last published: 6 years ago. Step 7/12 : RUN npm config set proxy -> Running in 1d9af892155c A reverse proxy driven by a simple configuration. Removing intermediate container f84cd3c05903 Npm WARN using -force I sure hope you know what you are doing. Removing intermediate container d1121964dbe4 Step 2/12 : MAINTAINER Douglas Quintanilha -> Using cache The problem is that when I try to run the build, an error occurs because of this proxy configuration: docker-compose build noproxy is a string containing hostnames. The noproxy configuration looks for a variable named noproxy in npm configuration. ![]() If there is a match, the request is made without proxy, if not proxy is used. Ond 10.100.5.107 is the ip of my machine that serves as proxy on the 3128 port, without authentication required. When npm fetches a package from a given url, the hostname is compared with noproxy configuration. So I added the commands: RUN npm cache clean -f To build my service, I have Dockerfile below: FROM node:latestĪs I use a corporate proxy, I researched how to tell you how to build this image, and I checked that this would be possible with npm config. ![]() To start testing, I created only one service in this file docker-compose.yml : version: '3'ĭockerfile. I am creating a docker-compose file to upload a multi-node system.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |