Differences between revisions 5 and 6
Revision 5 as of 2023-04-04 19:44:05
Size: 560
Comment:
Revision 6 as of 2023-04-04 20:10:24
Size: 822
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
`dockerd(8)` manages the network for all containers.

The networking model is tightly coupled to `iptables(8)`.
Line 10: Line 13:
== Container Networking == == Bridge Networks and the Default Network ==
Line 12: Line 15:
The default behavior for a new container is to use a bridge network. For information on bridge networks, see [[Docker/BridgeNetworks|Bridge Networks]]. The default behavior for a new container is to use a '''bridge network'''. Furthermore, if a bridge network is not specified, the special '''default network''' is used. For more information on all of these, see [[Docker/BridgeNetworks|here]].

----



== Disabling ==
Line 22: Line 31:
----
Line 24: Line 34:
=== Host Network ===
== Host Network ==

Docker Networking

dockerd(8) manages the network for all containers.

The networking model is tightly coupled to iptables(8).


Bridge Networks and the Default Network

The default behavior for a new container is to use a bridge network. Furthermore, if a bridge network is not specified, the special default network is used. For more information on all of these, see here.


Disabling

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


CategoryRicottone

Docker/Networking (last edited 2023-04-04 20:10:24 by DominicRicottone)