Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alternative implementation here: https://github.com/samos123/docker-veth #11

Open
samos123 opened this issue Dec 30, 2019 · 3 comments
Open

Comments

@samos123
Copy link

Hope you don't view this the wrong way, but I used an alternative approach with nsenter that I believe is less error prone when running from within a container on the same host. I also fixed some of the issues such as when containers use host networking.

Here is my approach: https://github.com/samos123/docker-veth

Feel free to delete this issue if this isn't appropriate. Happy to put in pull requests as well to fix some issues in your script.

@utdrmac
Copy link

utdrmac commented Jan 17, 2020

@samos123 Your script worked perfectly, out-of-box, on my Ubuntu 18.04 and docker 18.09, whereas this repo's script failed with the following:

$ sudo ./dockerveth.sh
Error: No such object: ode
511491786e33

Thank you for you script!

@mrigankchugh
Copy link

Thanks @samos123
You script worked perfectly. My containers were using host networking!

@rolanddenhollander
Copy link

@samos123 Your script worked perfectly, out-of-box, on my Ubuntu 18.04 and docker 18.09, whereas this repo's script failed with the following:

$ sudo ./dockerveth.sh
Error: No such object: ode
511491786e33

Thank you for you script!

Another issue reports that if you change "#!/bin/sh" to "#!/bin/bash"
then this script will run just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants