Sending build context to Docker daemon 18. Here is the build result of Dockerfile I use to build the nodeJs project docker build -t username/node-web-app. But npm is not the problem I have the same problem for the docker first app tutoria with the following line I also tried to add ENV http_proxy "" in the Dockerfile, I changed the /etc/docker/daemon.json file to add the dns.Ä«ut the build is blocked at the npm install line. I try to set the proxy everywhere i can /etc/default/docker Where is your proxy server address, and 8080 is the port number. Iâm in a corporate netwok using a proxy but everything else is working great (image pull for example). Cmd proxy settings Open cmd (win + R, enter cmd, then press enter), and then enter the following command: set httpproxy:8080. Iâm working with virtualbox on windows with ubuntu 64bits inside the VB. Following is the code you would require to set the proxy using the npm. As an alternative, you can also use the npm config set command to set the http-proxy value.You can use that to set the proxy values directly into the file. I think the problem is th proxy but i did everything i found to fix his. In NodeJs the npm uses a configuration file that can be easily edited using the npm config edit command. I want to use docker with nodeJS but the RUN npm install is not working.
0 Comments
Leave a Reply. |