-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
possibility to set a proxy directly in podman instead of set the system wide environment variable #4543
Comments
+1 |
This is part of the containers/common containers.conf effort. |
This issue had no activity for 30 days. In the absence of activity or the "do-not-close" label, the issue will be automatically closed within 7 days. |
Still waiting for containers.conf to be merged. |
Containers.conf is there. |
How to exclude proxy while run podman, any idea? |
If you mean to disable passing proxy environment variables from host to |
podman pull registryproxy01/simulator:latest --http-proxy=falseError: unknown flag: --http-proxy |
@mheon do you know how to set this? |
Podman will obey system proxy configuration from environment variables when pulling images. There is no way to disable this aside from clearing the environment variables when running Podman. |
Thanks for the reply. offcourse any services follow/obey system proxy variable but there must be some way to exclude while podman runs (pull/run). For eg: curl command, we can test internet with and without proxy from his flags. It will really helpful if we try to found something like that. Because proxy is mandate on system for service runnig. |
Does Work for you? |
Dont Require this? It will work only without proxy as registry is inhouse-server. I need to exclude the proxy variable while run podman. With proxy variables its going over internet and then recvd error.. |
I don't understand, You can unset the environment or what ever to remove this. These environment variables effect golang, not even something Podman understands. We are not going to add an ignore the environment flag to Podman. |
As i said, we require internet service on that server i can disable the proxy on system as its will stop internet. So require parameter to exclude the system proxy while running podman command for pull |
NoProxy=true podman ... Should satisfy this. |
It looks like not a valid Flag Error: unknown flag: --Noproxy |
If you set the environment variable https://godoc.org/golang.org/x/net/http/httpproxy
|
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
possibility to set a proxy directly in podman (e.g. podman config) instead of set the system wide environment variable (e.g. in /etc/profile)
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
virtual
The text was updated successfully, but these errors were encountered: