Comments (11)
@lukaszlach I believe I already have a fix for it and I have already forked the repo. I'll try to fix it myself and if you like the solution I can make a pull request ;)
from docker-tc.
Confirmed. If multiple docker containers are connected to the same bridge network, then the current workflow will fail to work.
Docker Container → Docker Network ID → Linux Network Interface
For a single bridge network, each container that links to it will have a veth interface. So the bash script will return multiple items for NETWORK_INTERFACE_NAME.
from docker-tc.
It seems that matching Docker Container ID with veth is not that trivial. There are some open-sourced scripts doing this: https://github.com/micahculpepper/dockerveth.
from docker-tc.
I have a fix for it already in my fork. I just need to get my branch and commits cleaned up and I'll make a pull request ;)
from docker-tc.
Thank you. I saw your implementation. But https://github.com/micahculpepper/dockerveth points out:
When I'm tracking down a problem in production, I'll typically wind up on a Docker server and see that my problems are coming from one veth interface or another. But making the leap from veth ID to container ID can be tricky. Folks on the internet suggest that you run some commands in bash inside your container, which is OK if your container has bash. Sometimes I'm working on Go containers that are just a single binary and don't even have a command-line interface to attach to.
I wish that I could make the leap from container ID to veth ID without provoking sudo
privileges. But it seems that it is hard to do so with out sudo
.
from docker-tc.
Hello folks, I am interested in using this tool too and was wondering if there was a chance for a release with the fix @Silcet? Thanks :)
from docker-tc.
@Lawouach I just need to clean my commits to make a branch for the pull request. I'll try to get it done today. Sorry for the wait ;)
from docker-tc.
No worries. Always appreciated to have feedback :)
from docker-tc.
Ok, I have just made the pull request #5 . @Lawouach maybe you could try to test it to see if it feets your needs?
from docker-tc.
Awesome. Your branch seems to be working just fine @Silcet!
from docker-tc.
Can I ask you to confirm that the #5 just merged resolves this issue?
The updated Docker image has also been released on Docker Hub.
from docker-tc.
Related Issues (15)
- Problem in parameters with Docker-TC HOT 1
- Limiting upload speed HOT 3
- How to specify network interface ? HOT 2
- Bandwidth Limiter does not work HOT 1
- not working in docker compose mode HOT 1
- Project Status / Project Transfer HOT 3
- MacOS support related??? - Cannot talk to rtnetlink: Operation not supported HOT 1
- Support for specific ports
- Warning: Network has no corresponding virtual network interface
- Docker-tc cannot update network interface after a container restarts
- Memory leak in docker-tc.sh HOT 3
- using docker-tc with kubernetes
- docker-tc configures settings on the wrong veth's
- Bandwith limit not working properly HOT 4
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 docker-tc.