Merge pull request #8367 from Luap99/docs-network-pod

[CI:DOCS] Explain the relation between --pod and --network
This commit is contained in:
OpenShift Merge Robot
2020-11-17 12:34:22 +01:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@ -574,9 +574,9 @@ to the container with **--name** then it will generate a random
string name. The name is useful any place you need to identify a container. string name. The name is useful any place you need to identify a container.
This works for both background and foreground containers. This works for both background and foreground containers.
#### **--network**=*bridge*, **--net** #### **--network**=*mode*, **--net**
Set the network mode for the container. Invalid if using **--dns**, **--dns-opt**, or **--dns-search** with **--network** that is set to **none** or **container:**_id_. Set the network mode for the container. Invalid if using **--dns**, **--dns-opt**, or **--dns-search** with **--network** that is set to **none** or **container:**_id_. If used together with **--pod**, the container will not join the pods network namespace.
Valid _mode_ values are: Valid _mode_ values are:

View File

@ -602,7 +602,7 @@ This works for both background and foreground containers.
#### **--network**=*mode*, **--net** #### **--network**=*mode*, **--net**
Set the network mode for the container. Invalid if using **--dns**, **--dns-opt**, or **--dns-search** with **--network** that is set to **none** or **container:**_id_. Set the network mode for the container. Invalid if using **--dns**, **--dns-opt**, or **--dns-search** with **--network** that is set to **none** or **container:**_id_. If used together with **--pod**, the container will not join the pods network namespace.
Valid _mode_ values are: Valid _mode_ values are: