GithubHelp home page GithubHelp logo

Comments (6)

maxfields2000 avatar maxfields2000 commented on August 30, 2024 2

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.

willis7 avatar willis7 commented on August 30, 2024 1

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.

SalahAdDin avatar SalahAdDin commented on August 30, 2024

@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:
deepinscreenshot20170608154918

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

And finally.....:
deepinscreenshot20170608160424
Nothing.

And ensure me about it:
deepinscreenshot20170608160850
deepinscreenshot20170608160625
deepinscreenshot20170608160638
deepinscreenshot20170608160725

What's wrong?

from dockerjenkins_tutorial.

willis7 avatar willis7 commented on August 30, 2024

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.

SalahAdDin avatar SalahAdDin commented on August 30, 2024

@willis7 I will test it, thank you.

from dockerjenkins_tutorial.

maxfields2000 avatar maxfields2000 commented on August 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.