Docker-DCO-1.1-Signed-off-by: Jonathan Boulle <jonathanboulle@gmail.com> (github: jonboulle)
| ... | ... |
@@ -47,7 +47,7 @@ func main() {
|
| 47 | 47 |
bridgeName = flag.String([]string{"b", "-bridge"}, "", "Attach containers to a pre-existing network bridge\nuse 'none' to disable container networking")
|
| 48 | 48 |
bridgeIp = flag.String([]string{"#bip", "-bip"}, "", "Use this CIDR notation address for the network bridge's IP, not compatible with -b")
|
| 49 | 49 |
pidfile = flag.String([]string{"p", "-pidfile"}, "/var/run/docker.pid", "Path to use for daemon PID file")
|
| 50 |
- flRoot = flag.String([]string{"g", "-graph"}, "/var/lib/docker", "Path to use as the root of the docker runtime")
|
|
| 50 |
+ flRoot = flag.String([]string{"g", "-graph"}, "/var/lib/docker", "Path to use as the root of the Docker runtime")
|
|
| 51 | 51 |
flSocketGroup = flag.String([]string{"G", "-group"}, "docker", "Group to assign the unix socket specified by -H when running in daemon mode\nuse '' (the empty string) to disable setting of a group")
|
| 52 | 52 |
flEnableCors = flag.Bool([]string{"#api-enable-cors", "-api-enable-cors"}, false, "Enable CORS headers in the remote API")
|
| 53 | 53 |
flDns = opts.NewListOpts(opts.ValidateIp4Address) |
| ... | ... |
@@ -56,8 +56,8 @@ func main() {
|
| 56 | 56 |
flEnableIpForward = flag.Bool([]string{"#ip-forward", "-ip-forward"}, true, "Enable net.ipv4.ip_forward")
|
| 57 | 57 |
flDefaultIp = flag.String([]string{"#ip", "-ip"}, "0.0.0.0", "Default IP address to use when binding container ports")
|
| 58 | 58 |
flInterContainerComm = flag.Bool([]string{"#icc", "-icc"}, true, "Enable inter-container communication")
|
| 59 |
- flGraphDriver = flag.String([]string{"s", "-storage-driver"}, "", "Force the docker runtime to use a specific storage driver")
|
|
| 60 |
- flExecDriver = flag.String([]string{"e", "-exec-driver"}, "native", "Force the docker runtime to use a specific exec driver")
|
|
| 59 |
+ flGraphDriver = flag.String([]string{"s", "-storage-driver"}, "", "Force the Docker runtime to use a specific storage driver")
|
|
| 60 |
+ flExecDriver = flag.String([]string{"e", "-exec-driver"}, "native", "Force the Docker runtime to use a specific exec driver")
|
|
| 61 | 61 |
flHosts = opts.NewListOpts(api.ValidateHost) |
| 62 | 62 |
flMtu = flag.Int([]string{"#mtu", "-mtu"}, 0, "Set the containers network MTU\nif no value is provided: default to the default route MTU or 1500 if no default route is available")
|
| 63 | 63 |
flTls = flag.Bool([]string{"-tls"}, false, "Use TLS; implied by tls-verify flags")
|
| ... | ... |
@@ -67,7 +67,7 @@ func main() {
|
| 67 | 67 |
flKey = flag.String([]string{"-tlskey"}, dockerConfDir+defaultKeyFile, "Path to TLS key file")
|
| 68 | 68 |
flSelinuxEnabled = flag.Bool([]string{"-selinux-enabled"}, false, "Enable selinux support")
|
| 69 | 69 |
) |
| 70 |
- flag.Var(&flDns, []string{"#dns", "-dns"}, "Force docker to use specific DNS servers")
|
|
| 70 |
+ flag.Var(&flDns, []string{"#dns", "-dns"}, "Force Docker to use specific DNS servers")
|
|
| 71 | 71 |
flag.Var(&flDnsSearch, []string{"-dns-search"}, "Force Docker to use specific DNS search domains")
|
| 72 | 72 |
flag.Var(&flHosts, []string{"H", "-host"}, "The socket(s) to bind to in daemon mode\nspecified using one or more tcp://host:port, unix:///path/to/socket, fd://* or fd://socketfd.")
|
| 73 | 73 |
flag.Var(&flGraphOpts, []string{"-storage-opt"}, "Set storage driver options")
|
| ... | ... |
@@ -259,7 +259,7 @@ func showVersion() {
|
| 259 | 259 |
func checkKernelAndArch() error {
|
| 260 | 260 |
// Check for unsupported architectures |
| 261 | 261 |
if runtime.GOARCH != "amd64" {
|
| 262 |
- return fmt.Errorf("The docker runtime currently only supports amd64 (not %s). This will change in the future. Aborting.", runtime.GOARCH)
|
|
| 262 |
+ return fmt.Errorf("The Docker runtime currently only supports amd64 (not %s). This will change in the future. Aborting.", runtime.GOARCH)
|
|
| 263 | 263 |
} |
| 264 | 264 |
// Check for unsupported kernel versions |
| 265 | 265 |
// FIXME: it would be cleaner to not test for specific versions, but rather |
| ... | ... |
@@ -58,10 +58,10 @@ expect an integer, and they can only be specified once. |
| 58 | 58 |
-D, --debug=false Enable debug mode |
| 59 | 59 |
--dns=[] Force docker to use specific DNS servers |
| 60 | 60 |
--dns-search=[] Force Docker to use specific DNS search domains |
| 61 |
- -e, --exec-driver="native" Force the docker runtime to use a specific exec driver |
|
| 61 |
+ -e, --exec-driver="native" Force the Docker runtime to use a specific exec driver |
|
| 62 | 62 |
-G, --group="docker" Group to assign the unix socket specified by -H when running in daemon mode |
| 63 | 63 |
use '' (the empty string) to disable setting of a group |
| 64 |
- -g, --graph="/var/lib/docker" Path to use as the root of the docker runtime |
|
| 64 |
+ -g, --graph="/var/lib/docker" Path to use as the root of the Docker runtime |
|
| 65 | 65 |
-H, --host=[] The socket(s) to bind to in daemon mode |
| 66 | 66 |
specified using one or more tcp://host:port, unix:///path/to/socket, fd://* or fd://socketfd. |
| 67 | 67 |
--icc=true Enable inter-container communication |
| ... | ... |
@@ -72,7 +72,7 @@ expect an integer, and they can only be specified once. |
| 72 | 72 |
if no value is provided: default to the default route MTU or 1500 if no default route is available |
| 73 | 73 |
-p, --pidfile="/var/run/docker.pid" Path to use for daemon PID file |
| 74 | 74 |
-r, --restart=true Restart previously running containers |
| 75 |
- -s, --storage-driver="" Force the docker runtime to use a specific storage driver |
|
| 75 |
+ -s, --storage-driver="" Force the Docker runtime to use a specific storage driver |
|
| 76 | 76 |
--storage-opt=[] Set storage driver options |
| 77 | 77 |
--selinux-enabled=false Enable selinux support |
| 78 | 78 |
--tls=false Use TLS; implied by tls-verify flags |