-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
setting http_proxy env on [engine] table results in containers always having http_proxy #8843
Comments
This is simple to fix on the podman local side, but difficult to fix on the remote side. |
This PR takes the settings from containers.conf and uses them. This works on the podman local but does not fix the issue for podman remote or for APIv2. We need a way to specify optionalbooleans when creating containers. Fixes: containers#8843 Signed-off-by: Daniel J Walsh <[email protected]>
Shouldn't remote obey it's own containser.json configuration? since what are we considering |
No the goal is to be able to set server side defaults, and then allow users to override them. This works fine for everything except booleans, Since the default unset state of a boolean is false, there is no way to know if a user set it to false versus just sending the default. |
why |
Let's ignore podman-remote and just look at the APIV2. If I am sing podman-py and create a container and the user does not specify http_proxy, then the server should default to true, based on containers.conf. If the user specifies http_proxy=false, then we should fall back to not doing http_proxy. The issue is the server currently can not tell the difference between the user specifying nothing and the user specying false. So if server default is true, what should server do? The better solution is to use an optionalbool in the parameter rather then a regular bool. That allows the user to know if the user specified true/false or did not specify. |
This PR takes the settings from containers.conf and uses them. This works on the podman local but does not fix the issue for podman remote or for APIv2. We need a way to specify optionalbooleans when creating containers. Fixes: containers#8843 Signed-off-by: Daniel J Walsh <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Steps to reproduce the issue:
http_proxy
env on[engine]
table on `/etc/containers/containers.confhttp_proxy
to false on[containers]
tableDescribe the results you received:
the output of the last step would be
http://1.2.3.4:5678
but if we add
--http-proxy=false
to the command, it works fineDescribe the results you expected:
the last step shouldn't have any output
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
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
Additional environment details (AWS, VirtualBox, physical, etc.): baremetal
The text was updated successfully, but these errors were encountered: