Git Product home page Git Product logo

Comments (3)

tkluck avatar tkluck commented on June 28, 2024

Thanks for the detailed report @badp !

I don't know if you have a happy middle ground between just binding to localhost and binding to literally anything

One potential (stopgap) solution is to add a list of IP addresses to listen on to the configuration file. That would help provided that your host's ip address on docker0 is stable.

Slightly more advanced would be to query docker for its network configuration, and listen on the appropriate interface.

Even more advanced would be if docker were to support some sort of "sidecar" concept, where it starts a process (pac4cli -p 172.17.0.1:3128) whenever any container is running.

What do you think?

from pac4cli.

tkluck avatar tkluck commented on June 28, 2024

@badp could you test whether #34 (add-interface-option) works for you? Instructions:

git clone https://github.com/tkluck/pac4cli
cd pac4cli
git checkout add-interface-option
make env
env/bin/python main.py -s 172.17.0.1 -p 3128 &

and then see if your docker container can use it.

from pac4cli.

tkluck avatar tkluck commented on June 28, 2024

Hey @badp , just out of interest: did you also look into the --network host option to docker run? I just checked that that also allows the container to connect to the pac4cli instance on the host.

from pac4cli.

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.