Podman build http_proxy=false for remote client causes issues when using the api #16520
Labels
kind/bug
Categorizes issue or PR as related to a bug.
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
remote
Problem is in podman-remote
windows
issue/bug on Windows
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
podman build
defaults tohttp-proxy=false
if remote, and the behaviour seems to not be configurable in any other place than the cli flagpodman build --http-proxy
to re-enable it.This causes issues when using for example docker-compose with podman machine npipe api, which otherwise works fine, but builds are broken due to the build not having proxy variables set, and there not being any way (config files, env vars, etc.) to force the
http_proxy
option back to true, other than using plain manual podman builds with the cli flag before compose up.For now pulls (uses proxy env vars) and runs (container has proxy env vars set) work fine, but builds do not due to this special default-false option. Its unclear if this is intended behaviour, or should the behaviour be in line with the other commands? At least there could be a way to configure this somehow via env vars or a config file, since all
podman build
commands ran against a certain podman machine must include the--http-proxy
flag.Steps to reproduce the issue:
podman build
from Windows for a Containerfile that has for example aRUN yum install
step, which needs internet access and needs to go through the proxy.Describe the results you received:
Install hangs for a while and timeouts due to the connection not using the proxy.
Describe the results you expected:
Install succeeds.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
orbrew info podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes
Additional environment details (AWS, VirtualBox, physical, etc.):
Windows WSL2 podman machine
The text was updated successfully, but these errors were encountered: