Skip to content

Add proxy for dockerClient#2764

Merged
mtrmac merged 1 commit intocontainers:mainfrom
warjiang:feat/proxy
Mar 12, 2025
Merged

Add proxy for dockerClient#2764
mtrmac merged 1 commit intocontainers:mainfrom
warjiang:feat/proxy

Conversation

@warjiang
Copy link
Copy Markdown
Contributor

@warjiang warjiang commented Mar 6, 2025

dockerClient will use http client to fetch manifest、blob and do some network request. Golang build-in http library will use HTTP_PROXYHTTPS_PROXY environment variables to config proxy for network. But the environment variables cannot make flexible control of proxy behaviours. So I want to declare proxy configuration explicitly.

Copy link
Copy Markdown
Collaborator

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mtrmac mtrmac linked an issue Mar 6, 2025 that may be closed by this pull request
@warjiang warjiang requested a review from mtrmac March 7, 2025 16:44
Copy link
Copy Markdown
Collaborator

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, please squash the two commits.

@mtrmac mtrmac added the kind/feature A request for, or a PR adding, new functionality label Mar 7, 2025
@warjiang warjiang force-pushed the feat/proxy branch 2 times, most recently from cfcd1b9 to d05965d Compare March 8, 2025 02:53
@warjiang
Copy link
Copy Markdown
Contributor Author

warjiang commented Mar 8, 2025

Looks good, please squash the two commits.

done~

@warjiang
Copy link
Copy Markdown
Contributor Author

warjiang commented Mar 8, 2025

/retest

@warjiang
Copy link
Copy Markdown
Contributor Author

warjiang commented Mar 8, 2025

it seems that some task failed.

image

Maybe it's problem of ci machine, is there any way to re-run the test case?

Copy link
Copy Markdown
Collaborator

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

The CI failure should be resolved by #2769 .

@mtrmac
Copy link
Copy Markdown
Collaborator

mtrmac commented Mar 11, 2025

Please rebase now, the test failure should be resolved.

Signed-off-by: warjiang <1096409085@qq.com>
@warjiang
Copy link
Copy Markdown
Contributor Author

ci passed, let's move forward 🎉

Copy link
Copy Markdown
Collaborator

@mtrmac mtrmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again!

@mtrmac mtrmac merged commit e268baf into containers:main Mar 12, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature A request for, or a PR adding, new functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Customize http.Client and/or http.Transport

2 participants