-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building the container behind a proxy #10
Comments
Nice question. A quick google search gave me these discussions at the official Alpine docker image:
Do you think you could test this approach with a custom Dockerfile and provide feedback? |
Were you able to reach a solution @javixeneize ? |
Hi. Sorry, yes, it works fine configuring the proxy inside Thanks |
Could you give some details on how you made it? Maybe write those instructions in the README and PR? |
Hi
It was really straightforward. Just add a line to the docker file to
configure the proxy :)
FROM alpine:3.3
ENV http_proxy http://proxy.com
ENV https_proxy http://proxy.com
......
Thanks
…On Tue, Apr 25, 2017 at 12:46 PM, João Ferreira Loff < ***@***.***> wrote:
Could you give some details on how you made it? Maybe write those
instructions in the README and PR?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AMK55nDhkR9vj13cJ2rCVQfOhBEjWEpqks5rzd0XgaJpZM4MuBwx>
.
|
I would like to reopen threads like this one but requiring an answer that allows another person to run the same image without modifying and rebuilding from Dockerfile. ENV in Dockerfile is so local, hacky and non portable it cripples Docker to uselessness in corporations. I expect proxy on host talks or something level of conversation to reach a solution. |
I actually stumped on this the other day: use Taken from the link above: I think this fits your scenario. |
I would like to second using the |
Hi
One interesting question... How to build a container behind a proxy?
When running pip to install the dependencies, it cant resolve the host, so you need to add a proxy in the docker file
While using a ubuntu image, exporting the proxy is easy (ENV http_proxy .....), using alpine or python templates doesnt work
Any idea on how to solve this problem?
The text was updated successfully, but these errors were encountered: