Disclaimer: This docker is installed on the Centos6.7 system, the 1.7.1,docker most applicable system is ubuntu14.x above
I. Configuration items
-H Help
--api-cors-header= "" Device cross-domain access, the default shutdown, the content can be "http://xx.xx.com", if set to "*", will allow all cross-site requests
-B--bridge= "" Configures the bridge used by the container, and if set to none, turns off its network capabilities
--bip= "" Configuration window uses dynamic bridge and cannot be used with-B
-d--defug=true|false switch on/off debug mode
-D--daemon=true|false allow boot in daemon mode
--default-gateway= "" Configure the default gateway
--default-gateway-v6= "" Configure the default gateway for IPV6
--dns= "" Configure Docker to use the specified DNS server
-e-exec-driver forcing Docker to use the specified driver
--exec-opt=[] Drive configuration Items
--exec-root= "" Specifies the root path of the Docker driver
--fixed-cidr= "" Assigns IP and masks to Docker containers, such as 10.0.0.1/16, and must use the-B option to specify the bridging network
--fixed-cidr-v6= "" Assigns IPv6 addresses to Docker containers
-G--group= "" Specifies the user group that performs Docker, which is the default Docker
-G--graph= "" runs the root directory of Docker, default is/var/lib/docker
-H--host=[unix:///var/run/docker.sock],tcp://host:port Specifies the socket binding in background mode and can bind one or more
--icc=true|false Allow/Deny Docker container to communicate with host, default is allow
--ip= "" The default IP address used when the container binds IP
--ip-forward=true|false Net.ipv4.ip_forward of the default boot container
--ip-masq=true|false IP spoofing is enabled by default for the IP segment of the bridge
--iptables=true|false default launch Docker container custom iptable rule
--ipv6=true|false default does not support IPv6, if enabled, you need to specify the--FIXED-CIDR-V6 address, and when turned on, Ipv6_forward will also be enabled by default (if not configured--ip-forward =false)
- L log-level= "Debug|info|warn|error|fatal" set log level, default to info
--label= "[]" sets the key-value pair label for the process, which can be viewed through Docker info
--log-driver= "Json-file|syslog|journald|none" set log driver, default to Json-file,docker logs command only supports Json-file log driver
--log-opt=[] setting log configuration options
--mtu=value Set the MTU of the container network, which defaults to 0
-P--pidfile= "" sets the PID file path of the daemon, which defaults to/var/run/docker.pid
--registry-mirror=<scheme>://
- s--storage-driver= "" forces the container to run with the specified storage driver, for example, specifying the use of Devicemapper, which can be: docker-d-s Devic Emapper
--selinux-enabled=true|false The SELinux function of the container is turned off by default. SELinux currently does not support Btrfs storage drivers
--storage-opt=[] Set storage options,seestorage DRIVER options.
-tls=true|false default off TLS (Secure Transport Layer protocol)
--tlscacert= "/root/.docker/ca.pem" through the CA-Certified certificate file path
-tlscert= the certificate file path for "/ROOT/.DOCKER/CERT.PEM" TLS
--tlskey= "/ROOT/.DOCKER/KEY.PEM" key file path for TLS
-tlsverify=true|false uses TLS and verifies the background process and client communication, which is off by default
--userland-proxy=true|false is enabled by default. This configuration is new, the host each time the container map a port, will start a docker-proxy process, if there are multiple ports need to map, it will lead to a lot of docker-proxy process, and thus occupy a lot of memory resources.
-V--version Show Docker version information
This article is from the "Letter" blog, please be sure to keep this source http://leon0long.blog.51cto.com/3011404/1765708
Docker Command Guide (i): Configuration Item Management