You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
network: add container networking intro from docker run reference
This change adds more introductory information about container
networking to the networking overview page, moving it from the docker
run reference page.
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
|`-p 8080:80`| Map port `8080` on the Docker host to TCP port `80` in the container. |
44
104
|`-p 192.168.1.100:8080:80`| Map port `8080` on the Docker host IP `192.168.1.100` to TCP port `80` in the container. |
45
105
|`-p 8080:80/udp`| Map port `8080` on the Docker host to UDP port `80` in the container. |
46
-
|`-p 8080:80/tcp -p 8080:80/udp`| Map TCP port `8080` on the Docker host to TCP port `80` in the container, and map UDP port `8080` on the Docker host to UDP port `80` in the container.|
106
+
|`-p 8080:80/tcp -p 8080:80/udp`| Map TCP port `8080` on the Docker host to TCP port `80` in the container, and map UDP port `8080` on the Docker host to UDP port `80` in the container.|
47
107
48
108
> **Important**
49
109
>
@@ -90,8 +150,11 @@ you can use the `--alias` flag to specify an additional network alias for the co
90
150
91
151
## DNS services
92
152
93
-
By default, containers inherit the DNS settings of the host,
94
-
as defined in the `/etc/resolv.conf` configuration file.
153
+
Containers use the same DNS servers as the host by default, but you can
154
+
override this with `--dns`.
155
+
156
+
By default, containers inherit the DNS settings as defined in the
157
+
`/etc/resolv.conf` configuration file.
95
158
Containers that attach to the default `bridge` network receive a copy of this file.
0 commit comments