Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2021-11-18 21:35:30
Size: 522
Comment:
Revision 4 as of 2021-11-18 21:37:58
Size: 357
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
For information on bridge networks between containers, see [[Docker/BridgeNetworks|Bridge Networks]].
Line 11: Line 10:
== Default Network == == Container Networking ==
Line 13: Line 12:
All containers are attached to a network. If one is not specified, the default network is used. This network is special in that there is no name resolution; the only way to communicate between containers is their ephemeral IP addresses. For information on bridge networks between containers, see [[Docker/BridgeNetworks|Bridge Networks]].
Line 19: Line 18:
== Creation == == Host Network ==
Line 21: Line 20:
To run a container on the host's own network, try:
Line 22: Line 22:

=== Name Resolution ===
{{{
docker run ... --network=host
}}}

Docker Networking


Container Networking

For information on bridge networks between containers, see Bridge Networks.


Host Network

To run a container on the host's own network, try:

docker run ... --network=host


CategoryRicottone

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