Comments (6)
I have a fix for this coming soon in my branch that will no longer require you to use a local IP like this by leveraging docker networking, sorry for the pain folks that this isn't obvious.
from dockerjenkins_tutorial.
For those of you who end up here (like me).... one way you can find the host ip is running the following command:
docker run --net=host debian:jessie ip addr show | grep 192
You will get an output like:
inet 192.168.65.3/24 brd 192.168.65.255 scope global eth0
My ip in this case would be 192.168.65.3
. If you use that in the Jenkins configuration and test, you should get a successful connections.
from dockerjenkins_tutorial.
@maxfields2000 Yes, this give me an error:
I put originally the localhost
host: 127.0.0.1
, but it didn't works, so i decided review in internet for get my host ip:
ip r | awk '/default/{print $3}' ✓ 1778 15:40:02
10.27.0.1
salahaddin@TulipanROG ~/Proyectos/UzmanTech/jenkins/jenkins master ● netstat -nr | grep '^0\.0\.0\.0' | awk '{print $2}'
10.27.0.1
I put then this ip but it doesn't work yet:
And now with other options:
docker inspect jenkins_master_1 | grep IP 1 ↵ 1787 15:48:15
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "172.17.0.4",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"IPAMConfig": null,
"IPAddress": "172.17.0.4",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
Same result.
Finally reviewing my ip
configuration:
ifconfig docker0 ✓ 1805 16:01:37
docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 172.17.0.1 netmask 255.255.0.0 broadcast 0.0.0.0
inet6 fe80::42:8eff:fe7c:58cb prefixlen 64 scopeid 0x20<link>
ether 02:42:8e:7c:58:cb txqueuelen 0 (Ethernet)
RX packets 202059 bytes 22029742 (21.0 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 378810 bytes 521715610 (497.5 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
inet
option is the same that i get doing:
docker inspect --format '{{ .NetworkSettings.Gateway }}' jenkins_master_1
172.17.0.1
salahaddin@TulipanROG ~/Proyectos/UzmanTech/jenkins/jenkins master ● docker inspect --format '{{ .NetworkSettings.IPAddress }}' jenkins_master_1
172.17.0.4
What's wrong?
from dockerjenkins_tutorial.
I'm hitting this same issue with Mac. I can see that the Docker API is available because I get a response in my browser with http://localhost:3375/images/json
.
How are others not getting this issue?
from dockerjenkins_tutorial.
@willis7 I will test it, thank you.
from dockerjenkins_tutorial.
This should now be fixed in the latest version on master, no need to provide a local IP (unless running on Docker for Windows and then only in the jenkins config for the Dockerhost).
from dockerjenkins_tutorial.
Related Issues (20)
- Jenkins-slave HOT 1
- Link to Grafana Dashboards? HOT 11
- Jenkins Credentials page doesn't seem to be proxied HOT 4
- Any update plan of the tutorial for the Docker for Mac ? HOT 4
- Full home partition warning in Jenkins HOT 2
- Can't seem to upgrade the jenkins version HOT 3
- Question: Run docker (docker-compose) inside slaves? HOT 1
- jenkins.model.JenkinsLocationConfiguration.xml: No such file or directory HOT 3
- Scriptler plugin distribution is suspended. HOT 1
- It seems that reverse proxy settings is wrong HOT 1
- Some aclaration notes HOT 1
- Load Balanced Slave Cluster HOT 2
- Inquiry about using this with ECS HOT 6
- Jenkins Cert part is now different HOT 1
- Getting error on "Test Your Slave Build" section HOT 1
- /jenkins/README.md is not sync with /jenkins/makefile HOT 1
- Script to set up docker-plugin automatically HOT 2
- It appears that your reverse proxy set up is broken.
- Monitoring problem HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dockerjenkins_tutorial.