Differences between revisions 2 and 3
Revision 2 as of 2021-11-18 21:36:05
Size: 565
Comment:
Revision 3 as of 2021-11-18 21:36:58
Size: 660
Comment:
Deletions are marked like this. Additions are marked like this.
Line 31: Line 31:
To run a container on the host's own network, try:

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

Docker Networking

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


Default Network

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.


Creating Networks

Name Resolution


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)