Skip to content

Commit 690d166

Browse files
kolyshkincorhere
authored andcommitted
man/dockerd.8: assorted formatting fixes
Mostly, this makes sure that literals (such as true, false, host, private, examples of options usage etc.) are typeset in bold, except for filenames, which are typeset in italic. While at it, - remove some default values from synopsis as it should not be there; - fix man pages references (page name in bold, volume number in regular). This is not a complete fix, but a step in the right direction. Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 374b779 commit 690d166

File tree

1 file changed

+72
-71
lines changed

1 file changed

+72
-71
lines changed

man/dockerd.8.md

Lines changed: 72 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dockerd - Enable daemon mode
1212
[**-b**|**--bridge**[=*BRIDGE*]]
1313
[**--bip**[=*BIP*]]
1414
[**--cgroup-parent**[=*[]*]]
15-
[**--config-file**[=*/etc/docker/daemon.json*]]
15+
[**--config-file**[=*path*]]
1616
[**--containerd**[=*SOCKET-PATH*]]
1717
[**--data-root**[=*/var/lib/docker*]]
1818
[**-D**|**--debug**]
@@ -29,27 +29,27 @@ dockerd - Enable daemon mode
2929
[**--dns-search**[=*[]*]]
3030
[**--exec-opt**[=*[]*]]
3131
[**--exec-root**[=*/var/run/docker*]]
32-
[**--experimental**[=*false*]]
32+
[**--experimental**[=**false**]]
3333
[**--fixed-cidr**[=*FIXED-CIDR*]]
3434
[**--fixed-cidr-v6**[=*FIXED-CIDR-V6*]]
3535
[**-G**|**--group**[=*docker*]]
3636
[**-H**|**--host**[=*[]*]]
3737
[**--help**]
3838
[**--http-proxy**[*""*]]
3939
[**--https-proxy**[*""*]]
40-
[**--icc**[=*true*]]
41-
[**--init**[=*false*]]
40+
[**--icc**[=**true**]]
41+
[**--init**[=**false**]]
4242
[**--init-path**[=*""*]]
4343
[**--insecure-registry**[=*[]*]]
4444
[**--ip**[=*0.0.0.0*]]
45-
[**--ip-forward**[=*true*]]
46-
[**--ip-masq**[=*true*]]
47-
[**--iptables**[=*true*]]
45+
[**--ip-forward**[=**true**]]
46+
[**--ip-masq**[=**true**]]
47+
[**--iptables**[=**true**]]
4848
[**--ipv6**]
4949
[**--isolation**[=*default*]]
5050
[**-l**|**--log-level**[=*info*]]
5151
[**--label**[=*[]*]]
52-
[**--live-restore**[=*false*]]
52+
[**--live-restore**[=**false**]]
5353
[**--log-driver**[=*json-file*]]
5454
[**--log-opt**[=*map[]*]]
5555
[**--mtu**[=*0*]]
@@ -72,7 +72,7 @@ dockerd - Enable daemon mode
7272
[**--tlscert**[=*~/.docker/cert.pem*]]
7373
[**--tlskey**[=*~/.docker/key.pem*]]
7474
[**--tlsverify**]
75-
[**--userland-proxy**[=*true*]]
75+
[**--userland-proxy**[=**true**]]
7676
[**--userland-proxy-path**[=*""*]]
7777
[**--userns-remap**[=*default*]]
7878
[**--validate**]
@@ -155,23 +155,24 @@ $ sudo dockerd --add-runtime runc=runc --add-runtime custom=/usr/local/bin/my-ru
155155
driver and "system.slice" for systemd cgroup driver.
156156

157157
**--config-file**=*"/etc/docker/daemon.json"*
158-
Specifies the JSON file path to load the configuration from.
158+
Specifies the JSON file path to load the configuration from. Default is
159+
*/etc/docker/daemon.json*.
159160

160161
**--containerd**=""
161162
Path to containerd socket.
162163

163164
**--data-root**=""
164165
Path to the directory used to store persisted Docker data such as
165166
configuration for resources, swarm cluster state, and filesystem data for
166-
images, containers, and local volumes. Default is `/var/lib/docker`.
167+
images, containers, and local volumes. Default is */var/lib/docker*.
167168

168-
**-D**, **--debug**=*true*|*false*
169-
Enable debug mode. Default is false.
169+
**-D**, **--debug**=**true**|**false**
170+
Enable debug mode. Default is **false**.
170171

171-
**--default-cgroupns-mode**="*host*|*private*"
172+
**--default-cgroupns-mode**="**host**|**private**"
172173
Set the default cgroup namespace mode for newly created containers. The argument
173-
can either be **host** or **private**. If unset, this defaults to `host` on cgroup v1,
174-
`private` on cgroup v2.
174+
can either be **host** or **private**. If unset, this defaults to **host** on cgroup v1,
175+
or **private** on cgroup v2.
175176

176177
**--default-gateway**=""
177178
IPv4 address of the container default gateway; this address must be part of
@@ -185,21 +186,21 @@ $ sudo dockerd --add-runtime runc=runc --add-runtime custom=/usr/local/bin/my-ru
185186
Example: base=172.30.0.0/16,size=24 will set the default
186187
address pools for the selected scope networks to {172.30.[0-255].0/24}
187188

188-
**--default-runtime**=*"runc"*
189-
Set default runtime if there're more than one specified by `--add-runtime`.
189+
**--default-runtime**=*"runtime"*
190+
Set default runtime if there're more than one specified by **--add-runtime**.
190191

191-
**--default-ipc-mode**="*private*|*shareable*"
192+
**--default-ipc-mode**="**private**|**shareable**"
192193
Set the default IPC mode for newly created containers. The argument
193194
can either be **private** or **shareable**.
194195

195-
**--default-shm-size**=*64MiB*
196-
Set the daemon-wide default shm size for containers. Default is `64MiB`.
196+
**--default-shm-size**=*size*
197+
Set the daemon-wide default shm *size* for containers. Default is `64MiB`.
197198

198199
**--default-ulimit**=[]
199200
Default ulimits for containers.
200201

201202
**--dns**=""
202-
Force Docker to use specific DNS servers
203+
Force Docker to use specific DNS servers.
203204

204205
**--dns-opt**=""
205206
DNS options to use.
@@ -242,10 +243,10 @@ unix://[/path/to/socket] to use.
242243
**--https-proxy***""*
243244
Proxy URL for HTTPS requests unless overridden by NoProxy.
244245

245-
**--icc**=*true*|*false*
246+
**--icc**=**true**|**false**
246247
Allow unrestricted inter\-container and Docker daemon host communication. If
247248
disabled, containers can still be linked together using the **--link** option
248-
(see **docker-run(1)**). Default is true.
249+
(see **docker-run**(1)). Default is **true**.
249250

250251
**--init**
251252
Run an init process inside containers for signal forwarding and process
@@ -269,33 +270,33 @@ unix://[/path/to/socket] to use.
269270
`--insecure-registry`.
270271

271272
**--ip**=""
272-
Default IP address to use when binding container ports. Default is `0.0.0.0`.
273+
Default IP address to use when binding container ports. Default is **0.0.0.0**.
273274

274-
**--ip-forward**=*true*|*false*
275-
Enables IP forwarding on the Docker host. The default is `true`. This flag
275+
**--ip-forward**=**true**|**false**
276+
Enables IP forwarding on the Docker host. The default is **true**. This flag
276277
interacts with the IP forwarding setting on your host system's kernel. If
277278
your system has IP forwarding disabled, this setting enables it. If your
278-
system has IP forwarding enabled, setting this flag to `--ip-forward=false`
279+
system has IP forwarding enabled, setting this flag to **false**
279280
has no effect.
280281

281282
This setting will also enable IPv6 forwarding if you have both
282-
`--ip-forward=true` and `--fixed-cidr-v6` set. Note that this may reject
283+
**--ip-forward=true** and **--fixed-cidr-v6** set. Note that this may reject
283284
Router Advertisements and interfere with the host's existing IPv6
284285
configuration. For more information, please consult the documentation about
285286
"Advanced Networking - IPv6".
286287

287-
**--ip-masq**=*true*|*false*
288-
Enable IP masquerading for bridge's IP range. Default is true.
288+
**--ip-masq**=**true**|**false**
289+
Enable IP masquerading for bridge's IP range. Default is **true**.
289290

290-
**--iptables**=*true*|*false*
291-
Enable Docker's addition of iptables rules. Default is true.
291+
**--iptables**=**true**|**false**
292+
Enable Docker's addition of iptables rules. Default is **true**.
292293

293-
**--ipv6**=*true*|*false*
294-
Enable IPv6 support. Default is false. Docker will create an IPv6-enabled
294+
**--ipv6**=**true**|**false**
295+
Enable IPv6 support. Default is **false**. Docker will create an IPv6-enabled
295296
bridge with address fe80::1 which will allow you to create IPv6-enabled
296-
containers. Use together with `--fixed-cidr-v6` to provide globally routable
297+
containers. Use together with **--fixed-cidr-v6** to provide globally routable
297298
IPv6 addresses. IPv6 forwarding will be enabled if not used with
298-
`--ip-forward=false`. This may collide with your host's current IPv6
299+
**--ip-forward=false**. This may collide with your host's current IPv6
299300
settings. For more information please consult the documentation about
300301
"Advanced Networking - IPv6".
301302

@@ -310,14 +311,14 @@ unix://[/path/to/socket] to use.
310311
**--label**="[]"
311312
Set key=value labels to the daemon (displayed in `docker info`)
312313

313-
**--live-restore**=*false*
314+
**--live-restore**=**false**
314315
Enable live restore of running containers when the daemon starts so that they
315316
are not restarted. This option is applicable only for docker daemon running
316317
on Linux host.
317318

318-
**--log-driver**="*json-file*|*syslog*|*journald*|*gelf*|*fluentd*|*awslogs*|*splunk*|*etwlogs*|*gcplogs*|*none*"
319-
Default driver for container logs. Default is `json-file`.
320-
**Warning**: `docker logs` command works only for `json-file` logging driver.
319+
**--log-driver**="**json-file**|**syslog**|**journald**|**gelf**|**fluentd**|**awslogs**|**splunk**|**etwlogs**|**gcplogs**|**none**"
320+
Default driver for container logs. Default is **json-file**.
321+
**Warning**: **docker logs** command works only for **json-file** logging driver.
321322

322323
**--log-opt**=[]
323324
Logging driver specific options.
@@ -346,8 +347,8 @@ unix://[/path/to/socket] to use.
346347
--node-generic-resources "NVIDIA-GPU=UUID2"`
347348

348349

349-
**-p**, **--pidfile**=""
350-
Path to use for daemon PID file. Default is `/var/run/docker.pid`
350+
**-p**, **--pidfile**="*path*"
351+
Path to use for daemon PID file. Default is */var/run/docker.pid*.
351352

352353
**--raw-logs**
353354
Output daemon logs in full timestamp format without ANSI coloring. If this
@@ -364,23 +365,23 @@ unix://[/path/to/socket] to use.
364365
**--seccomp-profile**=""
365366
Path to seccomp profile.
366367

367-
**--selinux-enabled**=*true*|*false*
368-
Enable selinux support. Default is false.
368+
**--selinux-enabled**=**true**|**false**
369+
Enable selinux support. Default is **false**.
369370

370-
**--shutdown-timeout**=*15*
371-
Set the shutdown timeout value in seconds. Default is `15`.
371+
**--shutdown-timeout**=*seconds*
372+
Set the shutdown timeout value in seconds. Default is **15**.
372373

373374
**--storage-opt**=[]
374375
Set storage driver options. See STORAGE DRIVER OPTIONS.
375376

376-
**--swarm-default-advertise-addr**=*IP|INTERFACE*
377+
**--swarm-default-advertise-addr**=*IP*|*INTERFACE*
377378
Set default address or interface for swarm to advertise as its
378379
externally-reachable address to other cluster members. This can be a
379380
hostname, an IP address, or an interface such as `eth0`. A port cannot be
380381
specified with this option.
381382

382-
**--tls**=*true*|*false*
383-
Use TLS; implied by --tlsverify. Default is false.
383+
**--tls**=**true**|**false**
384+
Use TLS; implied by **--tlsverify**. Default is **false**.
384385

385386
**--tlscacert**=*~/.docker/ca.pem*
386387
Trust certs signed only by this CA.
@@ -391,13 +392,13 @@ unix://[/path/to/socket] to use.
391392
**--tlskey**=*~/.docker/key.pem*
392393
Path to TLS key file.
393394

394-
**--tlsverify**=*true*|*false*
395+
**--tlsverify**=**true**|**false**
395396
Use TLS and verify the remote (daemon: verify client, client: verify daemon).
396-
Default is false.
397+
Default is **false**.
397398

398-
**--userland-proxy**=*true*|*false*
399+
**--userland-proxy**=**true**|**false**
399400
Rely on a userland proxy implementation for inter-container and
400-
outside-to-container loopback communications. Default is true.
401+
outside-to-container loopback communications. Default is **true**.
401402

402403
**--userland-proxy-path**=""
403404
Path to the userland proxy binary.
@@ -421,18 +422,18 @@ backends use operating system level technologies and can be
421422
configured.
422423

423424
Specify options to the storage backend with **--storage-opt** flags. The
424-
backends that currently take options are *devicemapper*, *zfs* and *btrfs*.
425-
Options for *devicemapper* are prefixed with *dm*, options for *zfs*
426-
start with *zfs* and options for *btrfs* start with *btrfs*.
425+
backends that currently take options are **devicemapper**, **zfs** and **btrfs**.
426+
Options for **devicemapper** are prefixed with **dm.**, options for **zfs**
427+
start with **zfs.**, and options for **btrfs** start with **btrfs.**.
427428

428429
Specifically for devicemapper, the default is a "loopback" model which
429430
requires no pre-configuration, but is extremely inefficient. Do not
430431
use it in production.
431432

432433
To make the best use of Docker with the devicemapper backend, you must
433-
have a recent version of LVM. Use `lvm` to create a thin pool; for
434-
more information see `man lvmthin`. Then, use `--storage-opt
435-
dm.thinpooldev` to tell the Docker engine to use that pool for
434+
have a recent version of LVM. Use **lvm**(8) to create a thin pool; for
435+
more information, see **lvmthin**(7). Then, use **--storage-opt
436+
dm.thinpooldev** to tell the Docker engine to use that pool for
436437
allocating images and container snapshots.
437438

438439
## Devicemapper options
@@ -662,28 +663,28 @@ By default, the devicemapper backend attempts to synchronize with the `udev`
662663
device manager for the Linux kernel. This option allows disabling that
663664
synchronization, to continue even though the configuration may be buggy.
664665

665-
To view the `udev` sync support of a Docker daemon that is using the
666-
`devicemapper` driver, run:
666+
To view the udev sync support of a Docker daemon that is using the
667+
devicemapper driver, run:
667668

668669
$ docker info
669670
[...]
670671
Udev Sync Supported: true
671672
[...]
672673

673-
When `udev` sync support is `true`, then `devicemapper` and `udev` can
674+
When udev sync support is **true**, then devicemapper and udev can
674675
coordinate the activation and deactivation of devices for containers.
675676

676-
When `udev` sync support is `false`, a race condition occurs between the
677-
`devicemapper` and `udev` during create and cleanup. The race condition results
677+
When udev sync support is **false**, a race condition occurs between the
678+
devicemapper and udev during create and cleanup. The race condition results
678679
in errors and failures. (For information on these failures, see
679680
[docker#4036](https://github.com/docker/docker/issues/4036))
680681

681-
To allow the `docker` daemon to start, regardless of whether `udev` sync is
682-
`false`, set `dm.override_udev_sync_check` to true:
682+
To allow the docker daemon to start, regardless of whether udev sync is
683+
**false**, set **dm.override_udev_sync_check** to **true**:
683684

684685
$ dockerd --storage-opt dm.override_udev_sync_check=true
685686

686-
When this value is `true`, the driver continues and simply warns you the errors
687+
When this value is **true**, the driver continues and simply warns you the errors
687688
are happening.
688689

689690
**Note**: The ideal is to pursue a `docker` daemon and environment that does
@@ -723,8 +724,8 @@ Specifies the maximum number of retries XFS should attempt to complete IO when
723724
ENOSPC (no space) error is returned by underlying storage device.
724725

725726
By default XFS retries infinitely for IO to finish and this can result in
726-
unkillable process. To change this behavior one can set xfs_nospace_max_retries
727-
to say 0 and XFS will not retry IO after getting ENOSPC and will shutdown
727+
unkillable process. To change this behavior one can set **xfs_nospace_max_retries**
728+
to e.g. **0** and XFS will not retry IO after getting ENOSPC and will shutdown
728729
filesystem.
729730

730731
Example use:
@@ -734,7 +735,7 @@ Example use:
734735
##### dm.libdm\_log\_level
735736

736737
Specifies the maxmimum libdm log level that will be forwarded to the dockerd
737-
log (as specified by --log-level). This option is primarily intended for
738+
log (as specified by **--log-level**). This option is primarily intended for
738739
debugging problems involving libdm. Using values other than the defaults may
739740
cause false-positive warnings to be logged.
740741

0 commit comments

Comments
 (0)