Comments (3)
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.
@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.
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)
- Hash sum mismatches with apt HOT 5
- Support http pipelining (e.g. for apt)
- Remove workarounds for python-systemd naming conflict
- "builtins.ValueError: too many values to unpack (expected 2)" traceback on connecting to network HOT 2
- binding to IPv6 address of localhost (if exists)
- pac4cli crash loop during startup on Ubuntu 18.10 HOT 1
- Explicitly specify IPv6 preference in CLI HOT 3
- Should run as a non-privileged user
- pac4cli does not respect http header case HOT 2
- The maximum number of active connections for UID 0 has been reached HOT 4
- Regular traceback in system logs HOT 1
- How can I get this to run in Debian 9 HOT 3
- Getting error 'Start request repeated too quickly.' HOT 12
- feature request: support authentication to proxy
- PPA for focal (20.04) HOT 2
- txdbus in PPA for focal HOT 1
- txdbus in PPA for focal - again HOT 3
- Pac4cli recently broke on Ubuntu 20.04 HOT 8
- Request PPA for Ubuntu 22.04 (Jammy) HOT 2
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 pac4cli.