-
Notifications
You must be signed in to change notification settings - Fork 318
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
fix: Port binding is not respected for SSH port #1043
Conversation
1- Dashboard > Manage Jenkins > Configure Clouds 2- Add a new Cloud 3- Connect method SSH 4- Container settings 5- Port Bindings 0.0.0.0:20000-20100:22 Expected Results All docker-proxy process should use a port between 20000 and 20100 Tested for a year now with this fix and docker-proxy always gets a port in the specified range.
The code change proposed looks sensible enough. Thanks @ericlapier for the contribution! |
I have just checked the official doc at https://docs.docker.com/network/proxy/. It does not seem to have a prescribed port range. Also, some of the CI/CD tests are not passing. May I ask if this port range is used by your company for a particular network configuration? If we accept this PR many users will be impacted I am afraid. |
no particular network configuration. We have other software running on the
slaves, and if we don't specify a range, allocated ssh port start to
collide with running daemons.
…On Fri, Mar 8, 2024 at 11:26 AM Kris Stern ***@***.***> wrote:
I have just checked the official doc at
https://docs.docker.com/network/proxy/. It does not seem to have a
prescribed port range. Also, some of the CI/CD tests are not passing. May I
ask if this port range is used by your company for a particular network
configuration? If we accept this PR many users will be impacted I am afraid.
—
Reply to this email directly, view it on GitHub
<#1043 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BFR3ROVNEJ5UQNTVTMKVY7DYXHRDFAVCNFSM6AAAAABCHYCFQGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBWGAYDANRUGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
.
|
We cannot approve the PR until the CI/CD checks are passing. @ericlapier Could you please get this done first? |
@krisstern I added a new testcase and fix the code such that all testcases are now successful. |
Thanks @ericlapier! The PR looks good to me. I will have it merged over the next 24 hours if I do not see any major objections from anyone. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
1- Dashboard > Manage Jenkins > Configure Clouds
2- Add a new Cloud
3- Connect method SSH
4- Container settings
5- Port Bindings
0.0.0.0:20000-20100:22
Expected Results
All docker-proxy process should use a port between 20000 and 20100
Tested for a year now with this fix and docker-proxy always gets a port in the specified range.
Testing done
Submitter checklist