Comments (5)
Not everyone has a proxy to go through so that's not something I can add to the Dockerfile to run every time. However, it'll be good to have your comment in the issues for people to reference. Thanks for sharing.
from codewithdandockerservices.
I'm afraid there isn't anything I can help with on this one since it's related to your firewall blocking access to a site used in the build. You'll need to talk with your network administrators about it to see if they can open access to the site listed in the error.
from codewithdandockerservices.
I use Ubuntu on Oracle VirtualBox and I can configure proxy for apt-get in following file /etc/apt/apt.conf But I am not sure how am I suppose to provide the proxy from Docker which will be used when apt-get command will run. I tried copying file at specified location, but it did not helped.
Any suggestions ?
from codewithdandockerservices.
I haven't had to deal with that personally. I did a little searching and found the following issue that mentions some ENV vars that may help. I don't have a way to test it but hopefully it at least points you in the right direction:
docker-archive/docker-registry#890
You can also check out this doc:
https://docs.docker.com/engine/reference/commandline/build/#set-build-time-variables-build-arg
If nothing in those links works, I'd recommend posting the specific info that you show above to stackoverflow.com to see about getting an answer from someone dealing with that.
from codewithdandockerservices.
for me, in my Dockerfile, please declare your proxy variable.
e.g. for my Dockerfile, I have added in this 2 lines.
ENV https_proxy https://.com:port
ENV http_proxy http://.com:port
from codewithdandockerservices.
Related Issues (8)
- Error: Cannot find module 'express' HOT 1
- Mongo Exit Code 1 HOT 5
- host not found in upstream "node1:8080" in /etc/nginx/nginx.conf:9 HOT 2
- More of some questions really... HOT 2
- Question: Which Commit HOT 1
- Secrets mongo deployment does not create admin user HOT 2
- Development: host not found in upstream "node:8080" in /etc/nginx/nginx.conf:28 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codewithdandockerservices.