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
Proxy env is not being applied #3922
Comments
Could you provide a bit more details? What exactly do you mean with "the variables seem to be recognised" If you run |
I leave the link here to the forum where this conversation started: How to use a proxy running on host in one container As I wrote that there, it would be useful to know how you try to use that proxy, what is the app that needs that and ignores it. If the proxy works when you use curl or wget in the container, then maybe the app that you want to run intentionally ignores it or requires some configuration to use the proxy variables defined in the shell.
The linked parts of the documentation don't have examples to reproduce the issue, only to set the variables. Do you have an example command like this?
Maybe you are using the
It should be probably mentioned in the documentation to set the lowercase variables as well. Unfortunately you need to know which app uses which variables if uses it at all. As jess1239 mentioned on the forum, you could use a VPN instead of a proxy if that helps. Without a VPN if you want to make sure no application can send request without using the proxy, you should deny all outgoing requests on the firewall and allow only the proxy server which has internet access. |
Sorry, I better close this before someone else wastes their time because it's clear I was wrong, since as I said I can use the proxy if I set it up in the container app. I had a preconceived idea that applying the proxy would redirect all traffic to it. |
Description
I am trying to get my containers to use my proxy. I have tried setting the client and container variables as instructed here, also systemd as instructed here.
In all cases, even all 3 at once, the variables seem to be recognized but not applied. If the app inside allows to configure a proxy I can use mine without problems, but by default my real ip is always used. Even when I enter an invalid proxy, I still have access to the internet.
Reproduce
Follow the steps in the tutorials mentioned in the description.
Expected behavior
Connection through my proxy, or no connection at all in case I enter it correctly.
docker version
docker info
Additional Info
I should mention that I am a newbie. I've been trying to figure this out for days, but I don't rule out that I'm making a mistake because I'm missing something that is tacit.
The text was updated successfully, but these errors were encountered: