Run in Docker represents a running container: a list of constants
Name |
Use |
Example |
-A,--attach=[] |
Specify standard input and output content type, optional stdin/ Stdout/stderr three items; |
|
-D,--detach=false |
Run the container in the background and return the container ID; |
|
-I.,--interactive=false |
Run the container in interactive mode, usually in conjunction with-t; |
|
-T,--tty=false |
Reassign a pseudo-input terminal to a container, usually in conjunction with-I; |
|
--name= "NGINX-LB" |
Specify a name for the container; |
|
--dns 8.8.8.8 |
Specifies the DNS server used by the container, with default and host consistency; |
|
--dns-search example.com |
Specifies the container DNS search domain name, default and host consistent; |
|
-H "Mars" |
Specifies the hostname of the container; |
|
-E username= "Ritchie" |
setting environment variables; |
|
--env-file=[] |
Reads from the specified file into the environment variable; |
|
--cpuset= "0-2" or--cpuset= "0,1,2" |
Binds the container to the specified CPU to run; |
|
--net= "Bridge" |
Specifies the network connection type of the container, supports bridge/ Host/none Four types of container:<name|id> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Docker Command-run