Docker Networking
Container Networking
The default behavior for a new container is to use a bridge network. For information on bridge networks, see Bridge Networks.
To disable networking for a container, try:
docker run \ --network=none \ hello-world
Host Network
To attach a container to the host's own network, try:
docker run --detach --name my-haproxy \ --network=host \ haproxy:latest