How can I rate limit network traffic on a docker container
I want to setup a docker container for a peer 2 peer app. This app doesn’t have app level rate limiting so I’m attempting to set a limit at the container level. I would like to rate limit outgoing and incoming connections on all ports but the one used by the app’s web UI.
One Solution collect form web for “How can I rate limit network traffic on a docker container”
You could use the iptables limits module. For example, you could add a rule to the PREROUTING table using the options “-m limit –limit 10/s” to limit a particular port to receive only 10 connections per second.