by Faaak · 4y ago · 0 comments
Docker, and the tools on top of that, can make these problems easier
The IP address situation can be handled with the "unshare" and "ip" commands. Unshare allows putting a process in a new namespace and ip allows configuring the interfaces and moving them between namespaces.
Both of these solutions do not require any container runtime which is a big advantage efficiency wise!
I am not saying that using docker for these purposes is bad though, I just wanted to mention some lightweight alternatives in case anyone was interested.