2020-10-17 09:02:11 -04:00
|
|
|
% "DOCKERD" "8" "SEPTEMBER 2015" "Docker Community" "Docker User Manuals"
|
|
|
|
|
2015-09-17 10:07:22 -04:00
|
|
|
# NAME
|
2016-04-28 02:55:22 -04:00
|
|
|
dockerd - Enable daemon mode
|
2015-09-17 10:07:22 -04:00
|
|
|
|
|
|
|
# SYNOPSIS
|
2016-04-28 02:55:22 -04:00
|
|
|
**dockerd**
|
2016-07-02 10:22:23 -04:00
|
|
|
[**--add-runtime**[=*[]*]]
|
2017-05-09 17:00:31 -04:00
|
|
|
[**--allow-nondistributable-artifacts**[=*[]*]]
|
2015-09-17 10:07:22 -04:00
|
|
|
[**--api-cors-header**=[=*API-CORS-HEADER*]]
|
2016-01-12 19:38:18 -05:00
|
|
|
[**--authorization-plugin**[=*[]*]]
|
2015-09-17 10:07:22 -04:00
|
|
|
[**-b**|**--bridge**[=*BRIDGE*]]
|
|
|
|
[**--bip**[=*BIP*]]
|
2016-01-06 16:59:01 -05:00
|
|
|
[**--cgroup-parent**[=*[]*]]
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
[**--config-file**[=*path*]]
|
2016-03-28 07:47:24 -04:00
|
|
|
[**--containerd**[=*SOCKET-PATH*]]
|
2016-11-22 01:17:24 -05:00
|
|
|
[**--data-root**[=*/var/lib/docker*]]
|
2015-12-23 09:37:06 -05:00
|
|
|
[**-D**|**--debug**]
|
2019-07-30 13:10:03 -04:00
|
|
|
[**--default-cgroupns-mode**[=*host*]]
|
2015-09-17 10:07:22 -04:00
|
|
|
[**--default-gateway**[=*DEFAULT-GATEWAY*]]
|
|
|
|
[**--default-gateway-v6**[=*DEFAULT-GATEWAY-V6*]]
|
2018-01-18 19:59:39 -05:00
|
|
|
[**--default-address-pool**[=*DEFAULT-ADDRESS-POOL*]]
|
2023-11-03 09:20:54 -04:00
|
|
|
[**--default-network-opt**[=*DRIVER=OPT=VALUE*]]
|
2016-12-17 09:01:59 -05:00
|
|
|
[**--default-runtime**[=*runc*]]
|
2017-07-20 17:42:51 -04:00
|
|
|
[**--default-ipc-mode**=*MODE*]
|
2016-12-25 04:11:12 -05:00
|
|
|
[**--default-shm-size**[=*64MiB*]]
|
2015-09-17 10:07:22 -04:00
|
|
|
[**--default-ulimit**[=*[]*]]
|
|
|
|
[**--dns**[=*[]*]]
|
2015-09-29 12:31:51 -04:00
|
|
|
[**--dns-opt**[=*[]*]]
|
2015-09-17 10:07:22 -04:00
|
|
|
[**--dns-search**[=*[]*]]
|
|
|
|
[**--exec-opt**[=*[]*]]
|
|
|
|
[**--exec-root**[=*/var/run/docker*]]
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
[**--experimental**[=**false**]]
|
2024-09-16 04:26:20 -04:00
|
|
|
[**--feature**[=*NAME*[=**true**|**false**]]
|
2015-09-17 10:07:22 -04:00
|
|
|
[**--fixed-cidr**[=*FIXED-CIDR*]]
|
|
|
|
[**--fixed-cidr-v6**[=*FIXED-CIDR-V6*]]
|
|
|
|
[**-G**|**--group**[=*docker*]]
|
|
|
|
[**-H**|**--host**[=*[]*]]
|
|
|
|
[**--help**]
|
2022-04-02 08:07:51 -04:00
|
|
|
[**--http-proxy**[*""*]]
|
|
|
|
[**--https-proxy**[*""*]]
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
[**--icc**[=**true**]]
|
|
|
|
[**--init**[=**false**]]
|
2016-09-27 06:51:42 -04:00
|
|
|
[**--init-path**[=*""*]]
|
2015-09-17 10:07:22 -04:00
|
|
|
[**--insecure-registry**[=*[]*]]
|
|
|
|
[**--ip**[=*0.0.0.0*]]
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
[**--ip-forward**[=**true**]]
|
|
|
|
[**--ip-masq**[=**true**]]
|
|
|
|
[**--iptables**[=**true**]]
|
2015-12-23 09:37:06 -05:00
|
|
|
[**--ipv6**]
|
2016-04-14 20:12:02 -04:00
|
|
|
[**--isolation**[=*default*]]
|
2015-09-17 10:07:22 -04:00
|
|
|
[**-l**|**--log-level**[=*info*]]
|
|
|
|
[**--label**[=*[]*]]
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
[**--live-restore**[=**false**]]
|
2015-09-17 10:07:22 -04:00
|
|
|
[**--log-driver**[=*json-file*]]
|
2024-09-16 06:41:23 -04:00
|
|
|
[**--log-format**="*text*|*json*"]
|
2015-09-17 10:07:22 -04:00
|
|
|
[**--log-opt**[=*map[]*]]
|
|
|
|
[**--mtu**[=*0*]]
|
2016-05-06 00:45:55 -04:00
|
|
|
[**--max-concurrent-downloads**[=*3*]]
|
|
|
|
[**--max-concurrent-uploads**[=*5*]]
|
2019-10-14 07:33:37 -04:00
|
|
|
[**--max-download-attempts**[=*5*]]
|
2022-04-02 08:07:51 -04:00
|
|
|
[**--no-proxy**[*""*]]
|
2017-11-08 12:13:11 -05:00
|
|
|
[**--node-generic-resources**[=*[]*]]
|
2015-09-17 10:07:22 -04:00
|
|
|
[**-p**|**--pidfile**[=*/var/run/docker.pid*]]
|
2015-12-13 05:10:41 -05:00
|
|
|
[**--raw-logs**]
|
2015-09-17 10:07:22 -04:00
|
|
|
[**--registry-mirror**[=*[]*]]
|
|
|
|
[**-s**|**--storage-driver**[=*STORAGE-DRIVER*]]
|
2016-09-02 09:20:54 -04:00
|
|
|
[**--seccomp-profile**[=*SECCOMP-PROFILE-PATH*]]
|
2015-12-23 09:37:06 -05:00
|
|
|
[**--selinux-enabled**]
|
2016-05-26 17:07:30 -04:00
|
|
|
[**--shutdown-timeout**[=*15*]]
|
2015-09-17 10:07:22 -04:00
|
|
|
[**--storage-opt**[=*[]*]]
|
2016-07-21 13:40:19 -04:00
|
|
|
[**--swarm-default-advertise-addr**[=*IP|INTERFACE*]]
|
2015-12-23 09:37:06 -05:00
|
|
|
[**--tls**]
|
2015-09-17 10:07:22 -04:00
|
|
|
[**--tlscacert**[=*~/.docker/ca.pem*]]
|
|
|
|
[**--tlscert**[=*~/.docker/cert.pem*]]
|
|
|
|
[**--tlskey**[=*~/.docker/key.pem*]]
|
2015-12-23 09:37:06 -05:00
|
|
|
[**--tlsverify**]
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
[**--userland-proxy**[=**true**]]
|
2016-09-24 09:44:25 -04:00
|
|
|
[**--userland-proxy-path**[=*""*]]
|
2016-01-08 10:07:46 -05:00
|
|
|
[**--userns-remap**[=*default*]]
|
2021-05-25 10:26:41 -04:00
|
|
|
[**--validate**]
|
2015-09-17 10:07:22 -04:00
|
|
|
|
|
|
|
# DESCRIPTION
|
2016-11-15 08:46:25 -05:00
|
|
|
**dockerd** is used for starting the Docker daemon (i.e., to command the daemon
|
|
|
|
to manage images, containers etc). So **dockerd** is a server, as a daemon.
|
2016-04-28 02:55:22 -04:00
|
|
|
|
|
|
|
To run the Docker daemon you can specify **dockerd**.
|
|
|
|
You can check the daemon options using **dockerd --help**.
|
2016-11-15 08:46:25 -05:00
|
|
|
Daemon options should be specified after the **dockerd** keyword in the
|
|
|
|
following format.
|
2015-09-17 10:07:22 -04:00
|
|
|
|
2016-04-28 02:55:22 -04:00
|
|
|
**dockerd [OPTIONS]**
|
2015-09-17 10:07:22 -04:00
|
|
|
|
|
|
|
# OPTIONS
|
|
|
|
|
2016-07-02 10:22:23 -04:00
|
|
|
**--add-runtime**=[]
|
2016-12-17 09:01:59 -05:00
|
|
|
Runtimes can be registered with the daemon either via the
|
|
|
|
configuration file or using the `--add-runtime` command line argument.
|
|
|
|
|
|
|
|
The following is an example adding 2 runtimes via the configuration:
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"default-runtime": "runc",
|
|
|
|
"runtimes": {
|
|
|
|
"runc": {
|
|
|
|
"path": "runc"
|
|
|
|
},
|
|
|
|
"custom": {
|
|
|
|
"path": "/usr/local/bin/my-runc-replacement",
|
|
|
|
"runtimeArgs": [
|
|
|
|
"--debug"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
This is the same example via the command line:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ sudo dockerd --add-runtime runc=runc --add-runtime custom=/usr/local/bin/my-runc-replacement
|
|
|
|
```
|
|
|
|
|
|
|
|
**Note**: defining runtime arguments via the command line is not supported.
|
2016-07-02 10:22:23 -04:00
|
|
|
|
2017-05-09 17:00:31 -04:00
|
|
|
**--allow-nondistributable-artifacts**=[]
|
|
|
|
Push nondistributable artifacts to the specified registries.
|
|
|
|
|
|
|
|
List can contain elements with CIDR notation to specify a whole subnet.
|
|
|
|
|
|
|
|
This option is useful when pushing images containing nondistributable
|
|
|
|
artifacts to a registry on an air-gapped network so hosts on that network can
|
|
|
|
pull the images without connecting to another server.
|
|
|
|
|
|
|
|
**Warning**: Nondistributable artifacts typically have restrictions on how
|
|
|
|
and where they can be distributed and shared. Only use this feature to push
|
|
|
|
artifacts to private registries and ensure that you are in compliance with
|
|
|
|
any terms that cover redistributing nondistributable artifacts.
|
|
|
|
|
2015-09-17 10:07:22 -04:00
|
|
|
**--api-cors-header**=""
|
2016-11-15 14:45:20 -05:00
|
|
|
Set CORS headers in the Engine API. Default is cors disabled. Give urls like
|
2023-04-17 18:24:03 -04:00
|
|
|
"http://foo, http://bar, ...". Give "\*" to allow all.
|
2015-09-17 10:07:22 -04:00
|
|
|
|
2016-01-12 19:38:18 -05:00
|
|
|
**--authorization-plugin**=""
|
2015-12-10 05:53:27 -05:00
|
|
|
Set authorization plugins to load
|
|
|
|
|
2015-09-17 10:07:22 -04:00
|
|
|
**-b**, **--bridge**=""
|
2016-11-15 08:46:25 -05:00
|
|
|
Attach containers to a pre\-existing network bridge; use 'none' to disable
|
|
|
|
container networking
|
2015-09-17 10:07:22 -04:00
|
|
|
|
|
|
|
**--bip**=""
|
2016-11-15 08:46:25 -05:00
|
|
|
Use the provided CIDR notation address for the dynamically created bridge
|
|
|
|
(docker0); Mutually exclusive of \-b
|
2015-09-17 10:07:22 -04:00
|
|
|
|
2015-12-07 12:55:33 -05:00
|
|
|
**--cgroup-parent**=""
|
2016-11-15 08:46:25 -05:00
|
|
|
Set parent cgroup for all containers. Default is "/docker" for fs cgroup
|
|
|
|
driver and "system.slice" for systemd cgroup driver.
|
2015-12-07 12:55:33 -05:00
|
|
|
|
2023-02-11 03:37:04 -05:00
|
|
|
**--config-file**=*"/etc/docker/daemon.json"*
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
Specifies the JSON file path to load the configuration from. Default is
|
|
|
|
*/etc/docker/daemon.json*.
|
2015-12-10 18:35:10 -05:00
|
|
|
|
2016-03-28 07:47:24 -04:00
|
|
|
**--containerd**=""
|
|
|
|
Path to containerd socket.
|
|
|
|
|
2016-11-22 01:17:24 -05:00
|
|
|
**--data-root**=""
|
|
|
|
Path to the directory used to store persisted Docker data such as
|
|
|
|
configuration for resources, swarm cluster state, and filesystem data for
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
images, containers, and local volumes. Default is */var/lib/docker*.
|
2016-11-22 01:17:24 -05:00
|
|
|
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
**-D**, **--debug**=**true**|**false**
|
|
|
|
Enable debug mode. Default is **false**.
|
2015-09-17 10:07:22 -04:00
|
|
|
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
**--default-cgroupns-mode**="**host**|**private**"
|
2019-07-30 13:10:03 -04:00
|
|
|
Set the default cgroup namespace mode for newly created containers. The argument
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
can either be **host** or **private**. If unset, this defaults to **host** on cgroup v1,
|
|
|
|
or **private** on cgroup v2.
|
2019-07-30 13:10:03 -04:00
|
|
|
|
2015-09-17 10:07:22 -04:00
|
|
|
**--default-gateway**=""
|
2016-11-15 08:46:25 -05:00
|
|
|
IPv4 address of the container default gateway; this address must be part of
|
2023-04-17 18:24:03 -04:00
|
|
|
the bridge subnet (which is defined by \-b or \-\-bip)
|
2015-09-17 10:07:22 -04:00
|
|
|
|
|
|
|
**--default-gateway-v6**=""
|
|
|
|
IPv6 address of the container default gateway
|
|
|
|
|
2018-01-18 19:59:39 -05:00
|
|
|
**--default-address-pool**=""
|
|
|
|
Default address pool from which IPAM driver selects a subnet for the networks.
|
|
|
|
Example: base=172.30.0.0/16,size=24 will set the default
|
|
|
|
address pools for the selected scope networks to {172.30.[0-255].0/24}
|
|
|
|
|
2023-11-03 09:20:54 -04:00
|
|
|
**--default-network-opt**=*DRIVER=OPT=VALUE*
|
|
|
|
Default network driver options
|
|
|
|
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
**--default-runtime**=*"runtime"*
|
|
|
|
Set default runtime if there're more than one specified by **--add-runtime**.
|
2016-12-17 09:01:59 -05:00
|
|
|
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
**--default-ipc-mode**="**private**|**shareable**"
|
2017-07-20 17:42:51 -04:00
|
|
|
Set the default IPC mode for newly created containers. The argument
|
|
|
|
can either be **private** or **shareable**.
|
|
|
|
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
**--default-shm-size**=*size*
|
|
|
|
Set the daemon-wide default shm *size* for containers. Default is `64MiB`.
|
2016-12-25 04:11:12 -05:00
|
|
|
|
2015-09-17 10:07:22 -04:00
|
|
|
**--default-ulimit**=[]
|
2016-07-15 19:52:59 -04:00
|
|
|
Default ulimits for containers.
|
2015-09-17 10:07:22 -04:00
|
|
|
|
|
|
|
**--dns**=""
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
Force Docker to use specific DNS servers.
|
2015-09-17 10:07:22 -04:00
|
|
|
|
2015-09-29 12:31:51 -04:00
|
|
|
**--dns-opt**=""
|
|
|
|
DNS options to use.
|
|
|
|
|
2015-09-17 10:07:22 -04:00
|
|
|
**--dns-search**=[]
|
|
|
|
DNS search domains to use.
|
|
|
|
|
|
|
|
**--exec-opt**=[]
|
2016-03-18 15:43:17 -04:00
|
|
|
Set runtime execution options. See RUNTIME EXECUTION OPTIONS.
|
2015-09-17 10:07:22 -04:00
|
|
|
|
|
|
|
**--exec-root**=""
|
2016-11-15 08:46:25 -05:00
|
|
|
Path to use as the root of the Docker execution state files. Default is
|
|
|
|
`/var/run/docker`.
|
2015-09-17 10:07:22 -04:00
|
|
|
|
2016-10-06 10:09:54 -04:00
|
|
|
**--experimental**=""
|
|
|
|
Enable the daemon experimental features.
|
|
|
|
|
2024-09-16 04:26:20 -04:00
|
|
|
**--feature**=*NAME*[=**true**|**false**]
|
2024-09-16 03:57:39 -04:00
|
|
|
Enable or disable a feature in the daemon. This option corresponds
|
2024-09-12 13:24:29 -04:00
|
|
|
with the "features" field in the daemon.json configuration file. Using
|
|
|
|
both the command-line option and the "features" field in the configuration
|
|
|
|
file produces an error. The feature option can be specified multiple times
|
|
|
|
to configure multiple features.
|
2024-09-16 04:26:20 -04:00
|
|
|
Usage example: `--feature containerd-snapshotter` or `--feature containerd-snapshotter=true`.
|
2024-09-12 13:24:29 -04:00
|
|
|
|
2015-09-17 10:07:22 -04:00
|
|
|
**--fixed-cidr**=""
|
2016-11-15 08:46:25 -05:00
|
|
|
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).
|
2015-09-17 10:07:22 -04:00
|
|
|
|
|
|
|
**--fixed-cidr-v6**=""
|
|
|
|
IPv6 subnet for global IPv6 addresses (e.g., 2a00:1450::/64)
|
|
|
|
|
|
|
|
**-G**, **--group**=""
|
|
|
|
Group to assign the unix socket specified by -H when running in daemon mode.
|
|
|
|
use '' (the empty string) to disable setting of a group. Default is `docker`.
|
|
|
|
|
2015-11-09 20:33:55 -05:00
|
|
|
**-H**, **--host**=[*unix:///var/run/docker.sock*]: tcp://[host:port] to bind or
|
2015-09-17 10:07:22 -04:00
|
|
|
unix://[/path/to/socket] to use.
|
|
|
|
The socket(s) to bind to in daemon mode specified using one or more
|
2023-04-17 18:24:03 -04:00
|
|
|
tcp://host:port, unix:///path/to/socket, fd://\* or fd://socketfd.
|
2015-09-17 10:07:22 -04:00
|
|
|
|
|
|
|
**--help**
|
|
|
|
Print usage statement
|
|
|
|
|
2022-04-02 08:07:51 -04:00
|
|
|
**--http-proxy***""*
|
|
|
|
Proxy URL for HTTP requests unless overridden by NoProxy.
|
|
|
|
|
|
|
|
**--https-proxy***""*
|
|
|
|
Proxy URL for HTTPS requests unless overridden by NoProxy.
|
|
|
|
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
**--icc**=**true**|**false**
|
2016-11-15 08:46:25 -05:00
|
|
|
Allow unrestricted inter\-container and Docker daemon host communication. If
|
|
|
|
disabled, containers can still be linked together using the **--link** option
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
(see **docker-run**(1)). Default is **true**.
|
2015-09-17 10:07:22 -04:00
|
|
|
|
2016-06-27 17:38:47 -04:00
|
|
|
**--init**
|
2016-11-15 08:46:25 -05:00
|
|
|
Run an init process inside containers for signal forwarding and process
|
|
|
|
reaping.
|
2016-06-27 17:38:47 -04:00
|
|
|
|
2016-09-27 06:51:42 -04:00
|
|
|
**--init-path**
|
2016-11-15 00:59:47 -05:00
|
|
|
Path to the docker-init binary.
|
2016-09-27 06:51:42 -04:00
|
|
|
|
2015-09-17 10:07:22 -04:00
|
|
|
**--insecure-registry**=[]
|
2016-11-15 08:46:25 -05:00
|
|
|
Enable insecure registry communication, i.e., enable un-encrypted and/or
|
|
|
|
untrusted communication.
|
2015-09-17 10:07:22 -04:00
|
|
|
|
2016-11-15 08:46:25 -05:00
|
|
|
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.
|
2015-09-17 10:07:22 -04:00
|
|
|
|
2016-11-15 08:46:25 -05:00
|
|
|
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`.
|
2015-09-17 10:07:22 -04:00
|
|
|
|
|
|
|
**--ip**=""
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
Default IP address to use when binding container ports. Default is **0.0.0.0**.
|
2015-09-17 10:07:22 -04:00
|
|
|
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
**--ip-forward**=**true**|**false**
|
|
|
|
Enables IP forwarding on the Docker host. The default is **true**. This flag
|
2016-11-15 08:46:25 -05:00
|
|
|
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
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
system has IP forwarding enabled, setting this flag to **false**
|
2016-11-15 08:46:25 -05:00
|
|
|
has no effect.
|
|
|
|
|
|
|
|
This setting will also enable IPv6 forwarding if you have both
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
**--ip-forward=true** and **--fixed-cidr-v6** set. Note that this may reject
|
2016-11-15 08:46:25 -05:00
|
|
|
Router Advertisements and interfere with the host's existing IPv6
|
2024-04-26 14:16:51 -04:00
|
|
|
configuration. For more information, consult the documentation about
|
2016-11-15 08:46:25 -05:00
|
|
|
"Advanced Networking - IPv6".
|
2015-09-17 10:07:22 -04:00
|
|
|
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
**--ip-masq**=**true**|**false**
|
|
|
|
Enable IP masquerading for bridge's IP range. Default is **true**.
|
2015-09-17 10:07:22 -04:00
|
|
|
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
**--iptables**=**true**|**false**
|
|
|
|
Enable Docker's addition of iptables rules. Default is **true**.
|
2015-09-17 10:07:22 -04:00
|
|
|
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
**--ipv6**=**true**|**false**
|
|
|
|
Enable IPv6 support. Default is **false**. Docker will create an IPv6-enabled
|
2016-11-15 08:46:25 -05:00
|
|
|
bridge with address fe80::1 which will allow you to create IPv6-enabled
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
containers. Use together with **--fixed-cidr-v6** to provide globally routable
|
2016-11-15 08:46:25 -05:00
|
|
|
IPv6 addresses. IPv6 forwarding will be enabled if not used with
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
**--ip-forward=false**. This may collide with your host's current IPv6
|
2024-04-26 14:16:51 -04:00
|
|
|
settings. For more information consult the documentation about
|
2016-11-15 08:46:25 -05:00
|
|
|
"Advanced Networking - IPv6".
|
2015-09-17 10:07:22 -04:00
|
|
|
|
2016-04-14 20:12:02 -04:00
|
|
|
**--isolation**="*default*"
|
2016-11-15 08:46:25 -05:00
|
|
|
Isolation specifies the type of isolation technology used by containers.
|
|
|
|
Note that the default on Windows server is `process`, and the default on
|
|
|
|
Windows client is `hyperv`. Linux only supports `default`.
|
2016-04-14 20:12:02 -04:00
|
|
|
|
2015-11-09 20:33:55 -05:00
|
|
|
**-l**, **--log-level**="*debug*|*info*|*warn*|*error*|*fatal*"
|
2015-09-17 10:07:22 -04:00
|
|
|
Set the logging level. Default is `info`.
|
|
|
|
|
|
|
|
**--label**="[]"
|
|
|
|
Set key=value labels to the daemon (displayed in `docker info`)
|
|
|
|
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
**--live-restore**=**false**
|
2016-11-15 08:46:25 -05:00
|
|
|
Enable live restore of running containers when the daemon starts so that they
|
|
|
|
are not restarted. This option is applicable only for docker daemon running
|
|
|
|
on Linux host.
|
2016-06-02 14:10:55 -04:00
|
|
|
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
**--log-driver**="**json-file**|**syslog**|**journald**|**gelf**|**fluentd**|**awslogs**|**splunk**|**etwlogs**|**gcplogs**|**none**"
|
|
|
|
Default driver for container logs. Default is **json-file**.
|
|
|
|
**Warning**: **docker logs** command works only for **json-file** logging driver.
|
2015-09-17 10:07:22 -04:00
|
|
|
|
2024-09-16 06:41:23 -04:00
|
|
|
**--log-format**="*text*|*json*"
|
|
|
|
Set the format for logs produced by the daemon. Default is "text".
|
|
|
|
|
2015-09-17 10:07:22 -04:00
|
|
|
**--log-opt**=[]
|
|
|
|
Logging driver specific options.
|
|
|
|
|
2015-11-09 20:33:55 -05:00
|
|
|
**--mtu**=*0*
|
2015-09-17 10:07:22 -04:00
|
|
|
Set the containers network mtu. Default is `0`.
|
|
|
|
|
2016-05-06 00:45:55 -04:00
|
|
|
**--max-concurrent-downloads**=*3*
|
2022-10-26 06:03:07 -04:00
|
|
|
Set the max concurrent downloads. Default is `3`.
|
2016-05-06 00:45:55 -04:00
|
|
|
|
|
|
|
**--max-concurrent-uploads**=*5*
|
2022-10-26 06:03:07 -04:00
|
|
|
Set the max concurrent uploads. Default is `5`.
|
2016-05-06 00:45:55 -04:00
|
|
|
|
2019-10-14 07:33:37 -04:00
|
|
|
**--max-download-attempts**=*5*
|
|
|
|
Set the max download attempts for each pull. Default is `5`.
|
|
|
|
|
2022-04-02 08:07:51 -04:00
|
|
|
**--no-proxy**=*""*"
|
|
|
|
Comma-separated values specifying hosts that should be excluded from proxying.
|
|
|
|
|
2017-11-08 12:13:11 -05:00
|
|
|
**--node-generic-resources**=*[]*
|
|
|
|
Advertise user-defined resource. Default is `[]`.
|
|
|
|
Use this if your swarm cluster has some nodes with custom
|
|
|
|
resources (e.g: NVIDIA GPU, SSD, ...) and you need your services to land on
|
|
|
|
nodes advertising these resources.
|
|
|
|
Usage example: `--node-generic-resources "NVIDIA-GPU=UUID1"
|
|
|
|
--node-generic-resources "NVIDIA-GPU=UUID2"`
|
|
|
|
|
|
|
|
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
**-p**, **--pidfile**="*path*"
|
|
|
|
Path to use for daemon PID file. Default is */var/run/docker.pid*.
|
2015-09-17 10:07:22 -04:00
|
|
|
|
2015-12-13 05:10:41 -05:00
|
|
|
**--raw-logs**
|
2016-11-15 08:46:25 -05:00
|
|
|
Output daemon logs in full timestamp format without ANSI coloring. If this
|
|
|
|
flag is not set, the daemon outputs condensed, colorized logs if a terminal
|
|
|
|
is detected, or full ("raw") output otherwise.
|
2015-12-13 05:10:41 -05:00
|
|
|
|
2015-11-09 20:33:55 -05:00
|
|
|
**--registry-mirror**=*<scheme>://<host>*
|
2016-11-15 08:46:25 -05:00
|
|
|
Prepend a registry mirror to be used for image pulls. May be specified
|
|
|
|
multiple times.
|
2015-09-17 10:07:22 -04:00
|
|
|
|
|
|
|
**-s**, **--storage-driver**=""
|
|
|
|
Force the Docker runtime to use a specific storage driver.
|
|
|
|
|
2016-09-02 09:20:54 -04:00
|
|
|
**--seccomp-profile**=""
|
|
|
|
Path to seccomp profile.
|
|
|
|
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
**--selinux-enabled**=**true**|**false**
|
|
|
|
Enable selinux support. Default is **false**.
|
2015-09-17 10:07:22 -04:00
|
|
|
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
**--shutdown-timeout**=*seconds*
|
|
|
|
Set the shutdown timeout value in seconds. Default is **15**.
|
2016-05-26 17:07:30 -04:00
|
|
|
|
2015-09-17 10:07:22 -04:00
|
|
|
**--storage-opt**=[]
|
|
|
|
Set storage driver options. See STORAGE DRIVER OPTIONS.
|
|
|
|
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
**--swarm-default-advertise-addr**=*IP*|*INTERFACE*
|
2016-11-15 08:46:25 -05:00
|
|
|
Set default address or interface for swarm to advertise as its
|
|
|
|
externally-reachable address to other cluster members. This can be a
|
|
|
|
hostname, an IP address, or an interface such as `eth0`. A port cannot be
|
|
|
|
specified with this option.
|
2016-06-30 21:07:35 -04:00
|
|
|
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
**--tls**=**true**|**false**
|
|
|
|
Use TLS; implied by **--tlsverify**. Default is **false**.
|
2015-09-17 10:07:22 -04:00
|
|
|
|
2015-11-09 20:33:55 -05:00
|
|
|
**--tlscacert**=*~/.docker/ca.pem*
|
2015-09-17 10:07:22 -04:00
|
|
|
Trust certs signed only by this CA.
|
|
|
|
|
2015-11-09 20:33:55 -05:00
|
|
|
**--tlscert**=*~/.docker/cert.pem*
|
2015-09-17 10:07:22 -04:00
|
|
|
Path to TLS certificate file.
|
|
|
|
|
2015-11-09 20:33:55 -05:00
|
|
|
**--tlskey**=*~/.docker/key.pem*
|
2015-09-17 10:07:22 -04:00
|
|
|
Path to TLS key file.
|
|
|
|
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
**--tlsverify**=**true**|**false**
|
2015-09-17 10:07:22 -04:00
|
|
|
Use TLS and verify the remote (daemon: verify client, client: verify daemon).
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
Default is **false**.
|
2015-09-17 10:07:22 -04:00
|
|
|
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
**--userland-proxy**=**true**|**false**
|
2016-11-15 08:46:25 -05:00
|
|
|
Rely on a userland proxy implementation for inter-container and
|
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 <kolyshkin@gmail.com>
2023-04-17 18:44:07 -04:00
|
|
|
outside-to-container loopback communications. Default is **true**.
|
2015-09-17 10:07:22 -04:00
|
|
|
|
2016-09-24 09:44:25 -04:00
|
|
|
**--userland-proxy-path**=""
|
|
|
|
Path to the userland proxy binary.
|
|
|
|
|
2016-01-08 10:07:46 -05:00
|
|
|
**--userns-remap**=*default*|*uid:gid*|*user:group*|*user*|*uid*
|
2016-11-15 08:46:25 -05:00
|
|
|
Enable user namespaces for containers on the daemon. Specifying "default"
|
|
|
|
will cause a new user and group to be created to handle UID and GID range
|
|
|
|
remapping for the user namespace mappings used for contained processes.
|
|
|
|
Specifying a user (or uid) and optionally a group (or gid) will cause the
|
|
|
|
daemon to lookup the user and group's subordinate ID ranges for use as the
|
|
|
|
user namespace mappings for contained processes.
|
2016-01-08 10:07:46 -05:00
|
|
|
|
2021-05-25 10:26:41 -04:00
|
|
|
**--validate**
|
|
|
|
Validate daemon configuration and exit.
|
|
|
|
|
2015-09-17 10:07:22 -04:00
|
|
|
# STORAGE DRIVER OPTIONS
|
|
|
|
|
2023-05-18 19:42:52 -04:00
|
|
|
Docker uses storage backends (known as "storage drivers" in the Docker
|
2015-09-17 10:07:22 -04:00
|
|
|
internals) to create writable containers from images. Many of these
|
|
|
|
backends use operating system level technologies and can be
|
|
|
|
configured.
|
|
|
|
|
2016-02-19 01:13:52 -05:00
|
|
|
Specify options to the storage backend with **--storage-opt** flags. The
|
2023-05-18 19:42:52 -04:00
|
|
|
backends that currently take options are **zfs** and **btrfs**.
|
|
|
|
Options for **zfs** start with **zfs.**, and options for **btrfs** start
|
|
|
|
with **btrfs.**.
|
2016-09-26 09:08:23 -04:00
|
|
|
|
2016-03-22 02:50:49 -04:00
|
|
|
## ZFS options
|
|
|
|
|
|
|
|
#### zfs.fsname
|
|
|
|
|
2016-11-15 08:46:25 -05:00
|
|
|
Set zfs filesystem under which docker will create its own datasets. By default
|
|
|
|
docker will pick up the zfs filesystem where docker graph (`/var/lib/docker`)
|
|
|
|
is located.
|
2016-03-22 02:50:49 -04:00
|
|
|
|
2016-04-28 02:55:22 -04:00
|
|
|
Example use: `dockerd -s zfs --storage-opt zfs.fsname=zroot/docker`
|
2016-03-22 02:50:49 -04:00
|
|
|
|
2016-03-23 21:14:38 -04:00
|
|
|
## Btrfs options
|
|
|
|
|
2023-04-17 18:24:03 -04:00
|
|
|
#### btrfs.min\_space
|
2016-03-23 21:14:38 -04:00
|
|
|
|
2017-02-16 10:56:53 -05:00
|
|
|
Specifies the minimum size to use when creating the subvolume which is used for
|
2016-11-15 08:46:25 -05:00
|
|
|
containers. If user uses disk quota for btrfs when creating or running a
|
|
|
|
container with **--storage-opt size** option, docker should ensure the **size**
|
|
|
|
cannot be smaller than **btrfs.min_space**.
|
2016-03-23 21:14:38 -04:00
|
|
|
|
|
|
|
Example use: `docker daemon -s btrfs --storage-opt btrfs.min_space=10G`
|
|
|
|
|
2015-12-10 05:53:27 -05:00
|
|
|
# Access authorization
|
|
|
|
|
2016-11-15 08:46:25 -05:00
|
|
|
Docker's access authorization can be extended by authorization plugins that
|
|
|
|
your organization can purchase or build themselves. You can install one or more
|
2015-12-10 05:53:27 -05:00
|
|
|
authorization plugins when you start the Docker `daemon` using the
|
2016-01-12 19:38:18 -05:00
|
|
|
`--authorization-plugin=PLUGIN_ID` option.
|
2015-12-10 05:53:27 -05:00
|
|
|
|
|
|
|
```bash
|
2016-04-28 02:55:22 -04:00
|
|
|
dockerd --authorization-plugin=plugin1 --authorization-plugin=plugin2,...
|
2015-12-10 05:53:27 -05:00
|
|
|
```
|
|
|
|
|
2016-11-15 08:46:25 -05:00
|
|
|
The `PLUGIN_ID` value is either the plugin's name or a path to its
|
|
|
|
specification file. The plugin's implementation determines whether you can
|
|
|
|
specify a name or path. Consult with your Docker administrator to get
|
|
|
|
information about the plugins available to you.
|
2015-12-10 05:53:27 -05:00
|
|
|
|
2017-05-01 09:27:42 -04:00
|
|
|
Once a plugin is installed, requests made to the `daemon` through the
|
|
|
|
command line or Docker's Engine API are allowed or denied by the plugin.
|
|
|
|
If you have multiple plugins installed, each plugin, in order, must
|
|
|
|
allow the request for it to complete.
|
2015-12-10 05:53:27 -05:00
|
|
|
|
2018-05-22 09:13:41 -04:00
|
|
|
For information about how to create an authorization plugin, see [access authorization
|
|
|
|
plugin](https://docs.docker.com/engine/extend/plugins_authorization/) section in the
|
2015-12-10 05:53:27 -05:00
|
|
|
Docker extend section of this documentation.
|
|
|
|
|
2016-12-22 06:27:40 -05:00
|
|
|
# RUNTIME EXECUTION OPTIONS
|
|
|
|
|
|
|
|
You can configure the runtime using options specified with the `--exec-opt` flag.
|
|
|
|
All the flag's options have the `native` prefix. A single `native.cgroupdriver`
|
|
|
|
option is available.
|
|
|
|
|
|
|
|
The `native.cgroupdriver` option specifies the management of the container's
|
|
|
|
cgroups. You can only specify `cgroupfs` or `systemd`. If you specify
|
|
|
|
`systemd` and it is not available, the system errors out. If you omit the
|
2020-06-24 06:09:15 -04:00
|
|
|
`native.cgroupdriver` option,` cgroupfs` is used on cgroup v1 hosts, `systemd`
|
|
|
|
is used on cgroup v2 hosts with systemd available.
|
2016-12-22 06:27:40 -05:00
|
|
|
|
|
|
|
This example sets the `cgroupdriver` to `systemd`:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
$ sudo dockerd --exec-opt native.cgroupdriver=systemd
|
|
|
|
```
|
|
|
|
|
|
|
|
Setting this option applies to all containers the daemon launches.
|
2015-10-09 12:04:34 -04:00
|
|
|
|
2015-09-17 10:07:22 -04:00
|
|
|
# HISTORY
|
|
|
|
Sept 2015, Originally compiled by Shishir Mahajan <shishir.mahajan@redhat.com>
|
|
|
|
based on docker.com source material and internal work.
|