-
Notifications
You must be signed in to change notification settings - Fork 324
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
How to enable Docker containers launched by Jenkins to access certain ports on 127.0.0.1? #1115
Comments
I can't duplicate the problem that you are describing. I opened the cloud configuration on Jenkins 2.479.1 and in the Docker Agent Templates section I expanded the Container settings and entered as Hostname the value of the host where I run the Docker listener. No null pointer exception was reported. I'm running Docker plugin 1.7.0. Does the same failure occur with Docker plugin 1.7.0 on a recent Jenkins version like 2.484? |
I can't duplicate that failure in my environment. I open the configuration page for my cloud agents, click the "Docker Agent Templates" button and expand the "Container settings". Then I enter "host" in the Network field and save it. No null pointer exception. |
Jenkins and plugins versions report
Jenkins Version: 2.450
docker plugin version: 1.6.2
What Operating System are you using (both controller, and any agents involved in the problem)?
Jenkins deployed in Docker container on Linux host
Reproduction steps
Fill in the host option in the container configuration, and NPE will be prompted.
Is there any way to allow Docker to access port 127.0.0.1 without configuring the host?
Expected Results
Enable Docker to access port 127.0.0.1
Actual Results
Unable to access port 127.0.0.1
Anything else?
No response
Are you interested in contributing a fix?
No response
The text was updated successfully, but these errors were encountered: