A question that comes to mind reading this. Is it possible to block/limit outbound traffic of a docker-container?
I'm thinking of a situation where I want to run a precompiled binary, but only want it to talk to an other container and not the outside world. How would I do that?
To block network access: firejail, unshare, or ip-nets jail if you like to get your hands dirty.
To limit bandwidth you can use trickle, wondershaper or again use ip tools.
If you don't mind some work SELinux can do this and so does AppArmor which is probably already included in your distro.