Browse code

man page for docker daemon command

Signed-off-by: Shishir Mahajan <shishir.mahajan@redhat.com>

Shishir Mahajan authored on 2015/09/17 23:07:22
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,400 @@
0
+% DOCKER(1) Docker User Manuals
1
+
2
+% Shishir Mahajan 
3
+
4
+% SEPTEMBER 2015
5
+
6
+# NAME
7
+docker-daemon - Enable daemon mode
8
+
9
+# SYNOPSIS
10
+**docker daemon**
11
+[**--api-cors-header**=[=*API-CORS-HEADER*]]
12
+[**-b**|**--bridge**[=*BRIDGE*]]
13
+[**--bip**[=*BIP*]]
14
+[**-D**|**--debug**[=*false*]]
15
+[**--default-gateway**[=*DEFAULT-GATEWAY*]]
16
+[**--default-gateway-v6**[=*DEFAULT-GATEWAY-V6*]]
17
+[**--default-ulimit**[=*[]*]]
18
+[**--dns**[=*[]*]]
19
+[**--dns-search**[=*[]*]]
20
+[**-e**|**--exec-driver**[=*native*]]
21
+[**--exec-opt**[=*[]*]]
22
+[**--exec-root**[=*/var/run/docker*]]
23
+[**--fixed-cidr**[=*FIXED-CIDR*]]
24
+[**--fixed-cidr-v6**[=*FIXED-CIDR-V6*]]
25
+[**-G**|**--group**[=*docker*]]
26
+[**-g**|**--graph**[=*/var/lib/docker*]]
27
+[**-H**|**--host**[=*[]*]]
28
+[**--help**]
29
+[**--icc**[=*true*]]
30
+[**--insecure-registry**[=*[]*]]
31
+[**--ip**[=*0.0.0.0*]]
32
+[**--ip-forward**[=*true*]]
33
+[**--ip-masq**[=*true*]]
34
+[**--iptables**[=*true*]]
35
+[**--ipv6**[=*false*]]
36
+[**-l**|**--log-level**[=*info*]]
37
+[**--label**[=*[]*]]
38
+[**--log-driver**[=*json-file*]]
39
+[**--log-opt**[=*map[]*]]
40
+[**--mtu**[=*0*]]
41
+[**-p**|**--pidfile**[=*/var/run/docker.pid*]]
42
+[**--registry-mirror**[=*[]*]]
43
+[**-s**|**--storage-driver**[=*STORAGE-DRIVER*]]
44
+[**--selinux-enabled**[=*false*]]
45
+[**--storage-opt**[=*[]*]]
46
+[**--tls**[=*false*]]
47
+[**--tlscacert**[=*~/.docker/ca.pem*]]
48
+[**--tlscert**[=*~/.docker/cert.pem*]]
49
+[**--tlskey**[=*~/.docker/key.pem*]]
50
+[**--tlsverify**[=*false*]]
51
+[**--userland-proxy**[=*true*]]
52
+
53
+# DESCRIPTION
54
+**docker** has two distinct functions. It is used for starting the Docker
55
+daemon and to run the CLI (i.e., to command the daemon to manage images,
56
+containers etc.) So **docker** is both a server, as a daemon, and a client
57
+to the daemon, through the CLI.
58
+
59
+To run the Docker daemon you can specify **docker daemon**.
60
+You can check the daemon options using **docker daemon --help**.
61
+Daemon options should be specified after the **daemon** keyword in the following
62
+format.
63
+
64
+**docker daemon [OPTIONS]**
65
+
66
+# OPTIONS
67
+
68
+**--api-cors-header**=""
69
+  Set CORS headers in the remote API. Default is cors disabled. Give urls like "http://foo, http://bar, ...". Give "*" to allow all.
70
+
71
+**-b**, **--bridge**=""
72
+  Attach containers to a pre\-existing network bridge; use 'none' to disable container networking
73
+
74
+**--bip**=""
75
+  Use the provided CIDR notation address for the dynamically created bridge (docker0); Mutually exclusive of \-b
76
+
77
+**-D**, **--debug**=*true*|*false*
78
+  Enable debug mode. Default is false.
79
+
80
+**--default-gateway**=""
81
+  IPv4 address of the container default gateway; this address must be part of the bridge subnet (which is defined by \-b or \--bip)
82
+
83
+**--default-gateway-v6**=""
84
+  IPv6 address of the container default gateway
85
+
86
+**--default-ulimit**=[]
87
+  Set default ulimits for containers.
88
+
89
+**--dns**=""
90
+  Force Docker to use specific DNS servers
91
+
92
+**--dns-search**=[]
93
+  DNS search domains to use.
94
+
95
+**-e**, **--exec-driver**=""
96
+  Force Docker to use specific exec driver. Default is `native`.
97
+
98
+**--exec-opt**=[]
99
+  Set exec driver options. See EXEC DRIVER OPTIONS.
100
+
101
+**--exec-root**=""
102
+  Path to use as the root of the Docker exec driver. Default is `/var/run/docker`.
103
+
104
+**--fixed-cidr**=""
105
+  IPv4 subnet for fixed IPs (e.g., 10.20.0.0/16); this subnet must be nested in the bridge subnet (which is defined by \-b or \-\-bip)
106
+
107
+**--fixed-cidr-v6**=""
108
+  IPv6 subnet for global IPv6 addresses (e.g., 2a00:1450::/64)
109
+
110
+**-G**, **--group**=""
111
+  Group to assign the unix socket specified by -H when running in daemon mode.
112
+  use '' (the empty string) to disable setting of a group. Default is `docker`.
113
+
114
+**-g**, **--graph**=""
115
+  Path to use as the root of the Docker runtime. Default is `/var/lib/docker`.
116
+
117
+**-H**, **--host**=[unix:///var/run/docker.sock]: tcp://[host:port] to bind or
118
+unix://[/path/to/socket] to use.
119
+  The socket(s) to bind to in daemon mode specified using one or more
120
+  tcp://host:port, unix:///path/to/socket, fd://* or fd://socketfd.
121
+
122
+**--help**
123
+  Print usage statement
124
+
125
+**--icc**=*true*|*false*
126
+  Allow unrestricted inter\-container and Docker daemon host communication. If disabled, containers can still be linked together using the **--link** option (see **docker-run(1)**). Default is true.
127
+
128
+**--insecure-registry**=[]
129
+  Enable insecure registry communication, i.e., enable un-encrypted and/or untrusted communication.
130
+
131
+  List of insecure registries can contain an element with CIDR notation to specify a whole subnet. Insecure registries accept HTTP and/or accept HTTPS with certificates from unknown CAs.
132
+
133
+  Enabling `--insecure-registry` is useful when running a local registry.  However, because its use creates security vulnerabilities it should ONLY be enabled for testing purposes.  For increased security, users should add their CA to their system's list of trusted CAs instead of using `--insecure-registry`. 
134
+
135
+**--ip**=""
136
+  Default IP address to use when binding container ports. Default is `0.0.0.0`.
137
+
138
+**--ip-forward**=*true*|*false*
139
+  Enables IP forwarding on the Docker host. The default is `true`. This flag interacts with the IP forwarding setting on your host system's kernel. If your system has IP forwarding disabled, this setting enables it. If your system has IP forwarding enabled, setting this flag to `--ip-forward=false` has no effect.
140
+
141
+  This setting will also enable IPv6 forwarding if you have both `--ip-forward=true` and `--fixed-cidr-v6` set. Note that this may reject Router Advertisements and interfere with the host's existing IPv6 configuration. For more information, please consult the documentation about "Advanced Networking - IPv6".
142
+
143
+**--ip-masq**=*true*|*false*
144
+  Enable IP masquerading for bridge's IP range. Default is true.
145
+
146
+**--iptables**=*true*|*false*
147
+  Enable Docker's addition of iptables rules. Default is true.
148
+
149
+**--ipv6**=*true*|*false*
150
+  Enable IPv6 support. Default is false. Docker will create an IPv6-enabled bridge with address fe80::1 which will allow you to create IPv6-enabled containers. Use together with `--fixed-cidr-v6` to provide globally routable IPv6 addresses. IPv6 forwarding will be enabled if not used with `--ip-forward=false`. This may collide with your host's current IPv6 settings. For more information please consult the documentation about "Advanced Networking - IPv6".
151
+
152
+**-l**, **--log-level**="*debug*|*info*|*warn*|*error*|*fatal*""
153
+  Set the logging level. Default is `info`.
154
+
155
+**--label**="[]"
156
+  Set key=value labels to the daemon (displayed in `docker info`)
157
+
158
+**--log-driver**="*json-file*|*syslog*|*journald*|*gelf*|*fluentd*|*awslogs*|*none*"
159
+  Default driver for container logs. Default is `json-file`.
160
+  **Warning**: `docker logs` command works only for `json-file` logging driver.
161
+
162
+**--log-opt**=[]
163
+  Logging driver specific options.
164
+
165
+**--mtu**=VALUE
166
+  Set the containers network mtu. Default is `0`.
167
+
168
+**-p**, **--pidfile**=""
169
+  Path to use for daemon PID file. Default is `/var/run/docker.pid`
170
+
171
+**--registry-mirror**=<scheme>://<host>
172
+  Prepend a registry mirror to be used for image pulls. May be specified multiple times.
173
+
174
+**-s**, **--storage-driver**=""
175
+  Force the Docker runtime to use a specific storage driver.
176
+
177
+**--selinux-enabled**=*true*|*false*
178
+  Enable selinux support. Default is false. SELinux does not presently support the BTRFS storage driver.
179
+
180
+**--storage-opt**=[]
181
+  Set storage driver options. See STORAGE DRIVER OPTIONS.
182
+
183
+**--tls**=*true*|*false*
184
+  Use TLS; implied by --tlsverify. Default is false.
185
+
186
+**--tlscacert**=~/.docker/ca.pem
187
+  Trust certs signed only by this CA.
188
+
189
+**--tlscert**=~/.docker/cert.pem
190
+  Path to TLS certificate file.
191
+
192
+**--tlskey**=~/.docker/key.pem
193
+  Path to TLS key file.
194
+
195
+**--tlsverify**=*true*|*false*
196
+  Use TLS and verify the remote (daemon: verify client, client: verify daemon).
197
+  Default is false.
198
+
199
+**--userland-proxy**=*true*|*false*
200
+    Rely on a userland proxy implementation for inter-container and outside-to-container loopback communications. Default is true.
201
+
202
+# STORAGE DRIVER OPTIONS
203
+
204
+Docker uses storage backends (known as "graphdrivers" in the Docker
205
+internals) to create writable containers from images.  Many of these
206
+backends use operating system level technologies and can be
207
+configured.
208
+
209
+Specify options to the storage backend with **--storage-opt** flags. The only
210
+backend that currently takes options is *devicemapper*. Therefore use these
211
+flags with **-s=**devicemapper.
212
+
213
+Specifically for devicemapper, the default is a "loopback" model which
214
+requires no pre-configuration, but is extremely inefficient.  Do not
215
+use it in production.
216
+
217
+To make the best use of Docker with the devicemapper backend, you must
218
+have a recent version of LVM.  Use `lvm` to create a thin pool; for
219
+more information see `man lvmthin`.  Then, use `--storage-opt
220
+dm.thinpooldev` to tell the Docker engine to use that pool for
221
+allocating images and container snapshots.
222
+
223
+Here is the list of *devicemapper* options:
224
+
225
+#### dm.thinpooldev
226
+
227
+Specifies a custom block storage device to use for the thin pool.
228
+
229
+If using a block device for device mapper storage, it is best to use
230
+`lvm` to create and manage the thin-pool volume. This volume is then
231
+handed to Docker to create snapshot volumes needed for images and
232
+containers.
233
+
234
+Managing the thin-pool outside of Docker makes for the most feature-rich method
235
+of having Docker utilize device mapper thin provisioning as the backing storage
236
+for Docker's containers. The highlights of the LVM-based thin-pool management
237
+feature include: automatic or interactive thin-pool resize support, dynamically
238
+changing thin-pool features, automatic thinp metadata checking when lvm activates
239
+the thin-pool, etc.
240
+
241
+Example use: `docker daemon --storage-opt dm.thinpooldev=/dev/mapper/thin-pool`
242
+
243
+#### dm.basesize
244
+
245
+Specifies the size to use when creating the base device, which limits
246
+the size of images and containers. The default value is 100G. Note,
247
+thin devices are inherently "sparse", so a 100G device which is mostly
248
+empty doesn't use 100 GB of space on the pool. However, the filesystem
249
+will use more space for base images the larger the device
250
+is.
251
+
252
+This value affects the system-wide "base" empty filesystem that may already
253
+be initialized and inherited by pulled images. Typically, a change to this
254
+value requires additional steps to take effect:
255
+
256
+        $ sudo service docker stop
257
+        $ sudo rm -rf /var/lib/docker
258
+        $ sudo service docker start
259
+
260
+Example use: `docker daemon --storage-opt dm.basesize=20G`
261
+
262
+#### dm.fs
263
+
264
+Specifies the filesystem type to use for the base device. The
265
+supported options are `ext4` and `xfs`. The default is `ext4`.
266
+
267
+Example use: `docker daemon --storage-opt dm.fs=xfs`
268
+
269
+#### dm.mkfsarg
270
+
271
+Specifies extra mkfs arguments to be used when creating the base device.
272
+
273
+Example use: `docker daemon --storage-opt "dm.mkfsarg=-O ^has_journal"`
274
+
275
+#### dm.mountopt
276
+
277
+Specifies extra mount options used when mounting the thin devices.
278
+
279
+Example use: `docker daemon --storage-opt dm.mountopt=nodiscard`
280
+
281
+#### dm.use_deferred_removal
282
+
283
+Enables use of deferred device removal if `libdm` and the kernel driver
284
+support the mechanism.
285
+
286
+Deferred device removal means that if device is busy when devices are
287
+being removed/deactivated, then a deferred removal is scheduled on
288
+device. And devices automatically go away when last user of the device
289
+exits.
290
+
291
+For example, when a container exits, its associated thin device is removed. If
292
+that device has leaked into some other mount namespace and can't be removed,
293
+the container exit still succeeds and this option causes the system to schedule
294
+the device for deferred removal. It does not wait in a loop trying to remove a busy
295
+device.
296
+
297
+Example use: `docker daemon --storage-opt dm.use_deferred_removal=true`
298
+
299
+#### dm.loopdatasize
300
+
301
+**Note**: This option configures devicemapper loopback, which should not be used in production.
302
+
303
+Specifies the size to use when creating the loopback file for the
304
+"data" device which is used for the thin pool. The default size is
305
+100G. The file is sparse, so it will not initially take up
306
+this much space.
307
+
308
+Example use: `docker daemon --storage-opt dm.loopdatasize=200G`
309
+
310
+#### dm.loopmetadatasize
311
+
312
+**Note**: This option configures devicemapper loopback, which should not be used in production.
313
+
314
+Specifies the size to use when creating the loopback file for the
315
+"metadata" device which is used for the thin pool. The default size
316
+is 2G. The file is sparse, so it will not initially take up
317
+this much space.
318
+
319
+Example use: `docker daemon --storage-opt dm.loopmetadatasize=4G`
320
+
321
+#### dm.datadev
322
+
323
+(Deprecated, use `dm.thinpooldev`)
324
+
325
+Specifies a custom blockdevice to use for data for a
326
+Docker-managed thin pool.  It is better to use `dm.thinpooldev` - see
327
+the documentation for it above for discussion of the advantages.
328
+
329
+#### dm.metadatadev
330
+
331
+(Deprecated, use `dm.thinpooldev`)
332
+
333
+Specifies a custom blockdevice to use for metadata for a
334
+Docker-managed thin pool.  See `dm.datadev` for why this is
335
+deprecated.
336
+
337
+#### dm.blocksize
338
+
339
+Specifies a custom blocksize to use for the thin pool.  The default
340
+blocksize is 64K.
341
+
342
+Example use: `docker daemon --storage-opt dm.blocksize=512K`
343
+
344
+#### dm.blkdiscard
345
+
346
+Enables or disables the use of `blkdiscard` when removing devicemapper
347
+devices.  This is disabled by default due to the additional latency,
348
+but as a special case with loopback devices it will be enabled, in
349
+order to re-sparsify the loopback file on image/container removal.
350
+
351
+Disabling this on loopback can lead to *much* faster container removal
352
+times, but it also prevents the space used in `/var/lib/docker` directory
353
+from being returned to the system for other use when containers are
354
+removed.
355
+
356
+Example use: `docker daemon --storage-opt dm.blkdiscard=false`
357
+
358
+#### dm.override_udev_sync_check
359
+
360
+By default, the devicemapper backend attempts to synchronize with the
361
+`udev` device manager for the Linux kernel.  This option allows
362
+disabling that synchronization, to continue even though the
363
+configuration may be buggy.
364
+
365
+To view the `udev` sync support of a Docker daemon that is using the
366
+`devicemapper` driver, run:
367
+
368
+        $ docker info
369
+        [...]
370
+         Udev Sync Supported: true
371
+        [...]
372
+
373
+When `udev` sync support is `true`, then `devicemapper` and `udev` can
374
+coordinate the activation and deactivation of devices for containers.
375
+
376
+When `udev` sync support is `false`, a race condition occurs between
377
+the `devicemapper` and `udev` during create and cleanup. The race
378
+condition results in errors and failures. (For information on these
379
+failures, see
380
+[docker#4036](https://github.com/docker/docker/issues/4036))
381
+
382
+To allow the `docker` daemon to start, regardless of whether `udev` sync is
383
+`false`, set `dm.override_udev_sync_check` to true:
384
+
385
+        $ docker daemon --storage-opt dm.override_udev_sync_check=true
386
+
387
+When this value is `true`, the driver continues and simply warns you
388
+the errors are happening.
389
+
390
+**Note**: The ideal is to pursue a `docker` daemon and environment
391
+that does support synchronizing with `udev`. For further discussion on
392
+this topic, see
393
+[docker#4036](https://github.com/docker/docker/issues/4036).
394
+Otherwise, set this flag for migrating existing Docker daemons to a
395
+daemon with a supported environment.
396
+
397
+# HISTORY
398
+Sept 2015, Originally compiled by Shishir Mahajan <shishir.mahajan@redhat.com>
399
+based on docker.com source material and internal work.
... ...
@@ -7,15 +7,19 @@ docker \- Docker image and container command line interface
7 7
 # SYNOPSIS
8 8
 **docker** [OPTIONS] COMMAND [arg...]
9 9
 
10
+**docker** daemon [ --help | ... ]
11
+
12
+**docker** [ --help | -v | --version ]
13
+
10 14
 # DESCRIPTION
11 15
 **docker** has two distinct functions. It is used for starting the Docker
12 16
 daemon and to run the CLI (i.e., to command the daemon to manage images,
13 17
 containers etc.) So **docker** is both a server, as a daemon, and a client
14 18
 to the daemon, through the CLI.
15 19
 
16
-To run the Docker daemon you do not specify any of the commands listed below but
17
-must specify the **-d** option.  The other options listed below are for the
18
-daemon only.
20
+To run the Docker daemon you can specify **docker daemon**.
21
+You can view the daemon options using **docker daemon --help**.
22
+To see the man page for the daemon, run **man docker daemon**.
19 23
 
20 24
 The Docker CLI has over 30 commands. The commands are listed below and each has
21 25
 its own man page which explain usage and arguments.
... ...
@@ -26,128 +30,20 @@ To see the man page for a command run **man docker <command>**.
26 26
 **--help**
27 27
   Print usage statement
28 28
 
29
-**--api-cors-header**=""
30
-  Set CORS headers in the remote API. Default is cors disabled. Give urls like "http://foo, http://bar, ...". Give "*" to allow all.
31
-
32
-**-b**, **--bridge**=""
33
-  Attach containers to a pre\-existing network bridge; use 'none' to disable container networking
34
-
35
-**--bip**=""
36
-  Use the provided CIDR notation address for the dynamically created bridge (docker0); Mutually exclusive of \-b
37
-
38 29
 **--config**=""
39 30
   Specifies the location of the Docker client configuration files. The default is '~/.docker'.
40 31
 
41 32
 **-D**, **--debug**=*true*|*false*
42 33
   Enable debug mode. Default is false.
43 34
 
44
-**-d**, **--daemon**=*true*|*false*
45
-  Enable daemon mode. Default is false.
46
-
47
-**--default-gateway**=""
48
-  IPv4 address of the container default gateway; this address must be part of the bridge subnet (which is defined by \-b or \--bip)
49
-
50
-**--default-gateway-v6**=""
51
-  IPv6 address of the container default gateway
52
-
53
-**--default-ulimit**=[]
54
-  Set default ulimits for containers.
55
-
56
-**--dns**=""
57
-  Force Docker to use specific DNS servers
58
-
59
-**--dns-opt**=[]
60
-  DNS options to use.
61
-
62
-**--dns-search**=[]
63
-  DNS search domains to use.
64
-
65
-**-e**, **--exec-driver**=""
66
-  Force Docker to use specific exec driver. Default is `native`.
67
-
68
-**--exec-opt**=[]
69
-  Set exec driver options. See EXEC DRIVER OPTIONS.
70
-
71
-**--exec-root**=""
72
-  Path to use as the root of the Docker exec driver. Default is `/var/run/docker`.
73
-
74
-**--fixed-cidr**=""
75
-  IPv4 subnet for fixed IPs (e.g., 10.20.0.0/16); this subnet must be nested in the bridge subnet (which is defined by \-b or \-\-bip)
76
-
77
-**--fixed-cidr-v6**=""
78
-  IPv6 subnet for global IPv6 addresses (e.g., 2a00:1450::/64)
79
-
80
-**-G**, **--group**=""
81
-  Group to assign the unix socket specified by -H when running in daemon mode.
82
-  use '' (the empty string) to disable setting of a group. Default is `docker`.
83
-
84
-**-g**, **--graph**=""
85
-  Path to use as the root of the Docker runtime. Default is `/var/lib/docker`.
86
-
87 35
 **-H**, **--host**=[unix:///var/run/docker.sock]: tcp://[host:port] to bind or
88 36
 unix://[/path/to/socket] to use.
89 37
   The socket(s) to bind to in daemon mode specified using one or more
90 38
   tcp://host:port, unix:///path/to/socket, fd://* or fd://socketfd.
91 39
 
92
-**--icc**=*true*|*false*
93
-  Allow unrestricted inter\-container and Docker daemon host communication. If disabled, containers can still be linked together using **--link** option (see **docker-run(1)**). Default is true.
94
-
95
-**--insecure-registry**=[]
96
-  Enable insecure registry communication, i.e., enable un-encrypted and/or untrusted communication.
97
-  
98
-  List of insecure registries can contain an element with CIDR notation to specify a whole subnet. Insecure registries accept HTTP and/or accept HTTPS with certificates from unknown CAs.
99
-  
100
-  Enabling `--insecure-registry` is useful when running a local registry.  However, because its use creates security vulnerabilities it should ONLY be enabled for testing purposes.  For increased security, users should add their CA to their system's list of trusted CAs instead of using `--insecure-registry`. 
101
-
102
-**--ip**=""
103
-  Default IP address to use when binding container ports. Default is `0.0.0.0`.
104
-
105
-**--ip-forward**=*true*|*false*
106
-  Enables IP forwarding on the Docker host. The default is `true`. This flag interacts with the IP forwarding setting on your host system's kernel. If your system has IP forwarding disabled, this setting enables it. If your system has IP forwarding enabled, setting this flag to `--ip-forward=false` has no effect.
107
-
108
-  This setting will also enable IPv6 forwarding if you have both `--ip-forward=true` and `--fixed-cidr-v6` set. Note that this may reject Router Advertisements and interfere with the host's existing IPv6 configuration. For more information, please consult the documentation about "Advanced Networking - IPv6".
109
-
110
-**--ip-masq**=*true*|*false*
111
-  Enable IP masquerading for bridge's IP range. Default is true.
112
-
113
-**--iptables**=*true*|*false*
114
-  Enable Docker's addition of iptables rules. Default is true.
115
-
116
-**--ipv6**=*true*|*false*
117
-  Enable IPv6 support. Default is false. Docker will create an IPv6-enabled bridge with address fe80::1 which will allow you to create IPv6-enabled containers. Use together with `--fixed-cidr-v6` to provide globally routable IPv6 addresses. IPv6 forwarding will be enabled if not used with `--ip-forward=false`. This may collide with your host's current IPv6 settings. For more information please consult the documentation about "Advanced Networking - IPv6".
118
-
119 40
 **-l**, **--log-level**="*debug*|*info*|*warn*|*error*|*fatal*""
120 41
   Set the logging level. Default is `info`.
121 42
 
122
-**--label**="[]"
123
-  Set key=value labels to the daemon (displayed in `docker info`)
124
-
125
-**--log-driver**="*json-file*|*syslog*|*journald*|*gelf*|*fluentd*|*awslogs*|*none*"
126
-  Default driver for container logs. Default is `json-file`.
127
-  **Warning**: the `docker logs` command works only for the `json-file` and
128
-  `journald` logging drivers.
129
-
130
-**--log-opt**=[]
131
-  Logging driver specific options.
132
-
133
-**--mtu**=VALUE
134
-  Set the containers network mtu. Default is `0`.
135
-
136
-**-p**, **--pidfile**=""
137
-  Path to use for daemon PID file. Default is `/var/run/docker.pid`
138
-
139
-**--registry-mirror**=<scheme>://<host>
140
-  Prepend a registry mirror to be used for image pulls. May be specified multiple times.
141
-
142
-**-s**, **--storage-driver**=""
143
-  Force the Docker runtime to use a specific storage driver.
144
-
145
-**--selinux-enabled**=*true*|*false*
146
-  Enable selinux support. Default is false. SELinux does not presently support the BTRFS storage driver.
147
-
148
-**--storage-opt**=[]
149
-  Set storage driver options. See STORAGE DRIVER OPTIONS.
150
-
151 43
 **--tls**=*true*|*false*
152 44
   Use TLS; implied by --tlsverify. Default is false.
153 45
 
... ...
@@ -164,9 +60,6 @@ unix://[/path/to/socket] to use.
164 164
   Use TLS and verify the remote (daemon: verify client, client: verify daemon).
165 165
   Default is false.
166 166
 
167
-**--userland-proxy**=*true*|*false*
168
-    Rely on a userland proxy implementation for inter-container and outside-to-container loopback communications. Default is true.
169
-
170 167
 **-v**, **--version**=*true*|*false*
171 168
   Print version information and quit. Default is false.
172 169
 
... ...
@@ -328,201 +221,6 @@ inside it)
328 328
   Block until a container stops, then print its exit code
329 329
   See **docker-wait(1)** for full documentation on the **wait** command.
330 330
 
331
-# STORAGE DRIVER OPTIONS
332
-
333
-Docker uses storage backends (known as "graphdrivers" in the Docker
334
-internals) to create writable containers from images.  Many of these
335
-backends use operating system level technologies and can be
336
-configured.
337
-
338
-Specify options to the storage backend with **--storage-opt** flags. The only
339
-backend that currently takes options is *devicemapper*. Therefore use these
340
-flags with **-s=**devicemapper.
341
-
342
-Specifically for devicemapper, the default is a "loopback" model which
343
-requires no pre-configuration, but is extremely inefficient.  Do not
344
-use it in production.
345
-
346
-To make the best use of Docker with the devicemapper backend, you must
347
-have a recent version of LVM.  Use `lvm` to create a thin pool; for
348
-more information see `man lvmthin`.  Then, use `--storage-opt
349
-dm.thinpooldev` to tell the Docker engine to use that pool for
350
-allocating images and container snapshots.
351
-
352
-Here is the list of *devicemapper* options:
353
-
354
-#### dm.thinpooldev
355
-
356
-Specifies a custom block storage device to use for the thin pool.
357
-
358
-If using a block device for device mapper storage, it is best to use
359
-`lvm` to create and manage the thin-pool volume. This volume is then
360
-handed to Docker to create snapshot volumes needed for images and
361
-containers.
362
-
363
-Managing the thin-pool outside of Docker makes for the most feature-rich method
364
-of having Docker utilize device mapper thin provisioning as the backing storage
365
-for Docker's containers. The highlights of the LVM-based thin-pool management
366
-feature include: automatic or interactive thin-pool resize support, dynamically
367
-changing thin-pool features, automatic thinp metadata checking when lvm activates
368
-the thin-pool, etc.
369
-
370
-Example use: `docker daemon --storage-opt dm.thinpooldev=/dev/mapper/thin-pool`
371
-
372
-#### dm.basesize
373
-
374
-Specifies the size to use when creating the base device, which limits
375
-the size of images and containers. The default value is 100G. Note,
376
-thin devices are inherently "sparse", so a 100G device which is mostly
377
-empty doesn't use 100 GB of space on the pool. However, the filesystem
378
-will use more space for base images the larger the device
379
-is. 
380
-
381
-This value affects the system-wide "base" empty filesystem that may already
382
-be initialized and inherited by pulled images. Typically, a change to this
383
-value requires additional steps to take effect:
384
-
385
-        $ sudo service docker stop
386
-        $ sudo rm -rf /var/lib/docker
387
-        $ sudo service docker start
388
-
389
-Example use: `docker daemon --storage-opt dm.basesize=20G`
390
-
391
-#### dm.fs
392
-
393
-Specifies the filesystem type to use for the base device. The
394
-supported options are `ext4` and `xfs`. The default is `ext4`.
395
-
396
-Example use: `docker daemon --storage-opt dm.fs=xfs`
397
-
398
-#### dm.mkfsarg
399
-
400
-Specifies extra mkfs arguments to be used when creating the base device.
401
-
402
-Example use: `docker daemon --storage-opt "dm.mkfsarg=-O ^has_journal"`
403
-
404
-#### dm.mountopt
405
-
406
-Specifies extra mount options used when mounting the thin devices.
407
-
408
-Example use: `docker daemon --storage-opt dm.mountopt=nodiscard`
409
-
410
-#### dm.use_deferred_removal
411
-
412
-Enables use of deferred device removal if `libdm` and the kernel driver
413
-support the mechanism.
414
-
415
-Deferred device removal means that if device is busy when devices are
416
-being removed/deactivated, then a deferred removal is scheduled on
417
-device. And devices automatically go away when last user of the device
418
-exits.
419
-
420
-For example, when a container exits, its associated thin device is removed. If
421
-that device has leaked into some other mount namespace and can't be removed,
422
-the container exit still succeeds and this option causes the system to schedule
423
-the device for deferred removal. It does not wait in a loop trying to remove a busy
424
-device.
425
-
426
-Example use: `docker daemon --storage-opt dm.use_deferred_removal=true`
427
-
428
-#### dm.loopdatasize
429
-
430
-**Note**: This option configures devicemapper loopback, which should not be used in production.
431
-
432
-Specifies the size to use when creating the loopback file for the
433
-"data" device which is used for the thin pool. The default size is
434
-100G. The file is sparse, so it will not initially take up
435
-this much space.
436
-
437
-Example use: `docker daemon --storage-opt dm.loopdatasize=200G`
438
-
439
-#### dm.loopmetadatasize
440
-
441
-**Note**: This option configures devicemapper loopback, which should not be used in production.
442
-
443
-Specifies the size to use when creating the loopback file for the
444
-"metadata" device which is used for the thin pool. The default size
445
-is 2G. The file is sparse, so it will not initially take up
446
-this much space.
447
-
448
-Example use: `docker daemon --storage-opt dm.loopmetadatasize=4G`
449
-
450
-#### dm.datadev
451
-
452
-(Deprecated, use `dm.thinpooldev`)
453
-
454
-Specifies a custom blockdevice to use for data for a
455
-Docker-managed thin pool.  It is better to use `dm.thinpooldev` - see
456
-the documentation for it above for discussion of the advantages.
457
-
458
-#### dm.metadatadev
459
-
460
-(Deprecated, use `dm.thinpooldev`)
461
-
462
-Specifies a custom blockdevice to use for metadata for a
463
-Docker-managed thin pool.  See `dm.datadev` for why this is
464
-deprecated.
465
-
466
-#### dm.blocksize
467
-
468
-Specifies a custom blocksize to use for the thin pool.  The default
469
-blocksize is 64K.
470
-
471
-Example use: `docker daemon --storage-opt dm.blocksize=512K`
472
-
473
-#### dm.blkdiscard
474
-
475
-Enables or disables the use of `blkdiscard` when removing devicemapper
476
-devices.  This is disabled by default due to the additional latency,
477
-but as a special case with loopback devices it will be enabled, in
478
-order to re-sparsify the loopback file on image/container removal.
479
-
480
-Disabling this on loopback can lead to *much* faster container removal
481
-times, but it also prevents the space used in `/var/lib/docker` directory
482
-from being returned to the system for other use when containers are
483
-removed.
484
-
485
-Example use: `docker daemon --storage-opt dm.blkdiscard=false`
486
-
487
-#### dm.override_udev_sync_check
488
-
489
-By default, the devicemapper backend attempts to synchronize with the
490
-`udev` device manager for the Linux kernel.  This option allows
491
-disabling that synchronization, to continue even though the
492
-configuration may be buggy.
493
-
494
-To view the `udev` sync support of a Docker daemon that is using the
495
-`devicemapper` driver, run:
496
-
497
-        $ docker info
498
-	[...]
499
-	 Udev Sync Supported: true
500
-	[...]
501
-
502
-When `udev` sync support is `true`, then `devicemapper` and `udev` can
503
-coordinate the activation and deactivation of devices for containers.
504
-
505
-When `udev` sync support is `false`, a race condition occurs between
506
-the `devicemapper` and `udev` during create and cleanup. The race
507
-condition results in errors and failures. (For information on these
508
-failures, see
509
-[docker#4036](https://github.com/docker/docker/issues/4036))
510
-
511
-To allow the `docker` daemon to start, regardless of whether `udev` sync is
512
-`false`, set `dm.override_udev_sync_check` to true:
513
-
514
-        $ docker daemon --storage-opt dm.override_udev_sync_check=true
515
-
516
-When this value is `true`, the driver continues and simply warns you
517
-the errors are happening.
518
-
519
-**Note**: The ideal is to pursue a `docker` daemon and environment
520
-that does support synchronizing with `udev`. For further discussion on
521
-this topic, see
522
-[docker#4036](https://github.com/docker/docker/issues/4036).
523
-Otherwise, set this flag for migrating existing Docker daemons to a
524
-daemon with a supported environment.
525
-
526 331
 # EXEC DRIVER OPTIONS
527 332
 
528 333
 Use the **--exec-opt** flags to specify options to the exec-driver. The only