Skip to content
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

ADD <url> fails if http proxy is used #5869

Open
r10r opened this issue Dec 9, 2024 · 0 comments
Open

ADD <url> fails if http proxy is used #5869

r10r opened this issue Dec 9, 2024 · 0 comments

Comments

@r10r
Copy link
Contributor

r10r commented Dec 9, 2024

Proxy environment is setup properly and the following dockerfile builds fine with buildah bud when using buildah v1.33.11.

FROM alpine:latest
RUN env | grep proxy
ADD https://raw.githubusercontent.com/containers/buildah/refs/heads/main/README.md README.md

But after switching to buildah 1.38.0 the file download fails.

STEP 1/3: FROM alpine:latest
STEP 2/3: RUN env | grep proxy
https_proxy=http://proxy.mycompany.de:3128
http_proxy=http://proxy.mycompany.de:3128
STEP 3/3: ADD https://raw.githubusercontent.com/containers/buildah/refs/heads/main/README.md README.md
WARN[0000] Failed, retrying in 1s ... (1/3). Error: Get "https://raw.githubusercontent.com/containers/buildah/refs/heads/main/README.md": dial tcp 185.199.110.133:443: connect: connection refused 
WARN[0002] Failed, retrying in 2s ... (2/3). Error: Get "https://raw.githubusercontent.com/containers/buildah/refs/heads/main/README.md": dial tcp 185.199.110.133:443: connect: connection refused 
WARN[0004] Failed, retrying in 4s ... (3/3). Error: Get "https://raw.githubusercontent.com/containers/buildah/refs/heads/main/README.md": dial tcp 185.199.109.133:443: connect: connection refused 
@r10r r10r changed the title ADD <url> fails if http proxy is used ADD <url> fails if http proxy is used Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant