Containers can use the network stack in a few different ways. It all depends on how they connect to the network. A couple of options are:
- docker bridge
- host (ex.
$docker run --rm -it --net=host ...)
- container networks (ex.
$docker run --rm -it --net=container:id ...)
Building a container and…