× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

Network testing for Docker containers

Seán C McCord
Jul 06, 2015
<p>To manipulate packets inside a container (whether by `iptables` or `tc`), you will need kernel-level access which is not usually provided to a container.  For this reason, you will need to run your container in "privileged" mode.  You can do this with the `--privileged` parametert to `docker run`.</p> <p> </p> <p>Because network testing tools typically operate on a particular interface, and because your containers have their own (virtual) interface, properly-constrained (bound to particular interfaces) network testing tools will operate only on those individual containers, and not the rest of the machine (host or other containers).</p>
comments powered by Disqus