mirror of https://github.com/docker/cli.git
Change all docker -d to docker daemon
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
parent
c3bbab15c2
commit
4454b68474
|
@ -877,7 +877,7 @@ To mount a FUSE based filesystem, you need to combine both `--cap-add` and
|
||||||
|
|
||||||
|
|
||||||
If the Docker daemon was started using the `lxc` exec-driver
|
If the Docker daemon was started using the `lxc` exec-driver
|
||||||
(`docker -d --exec-driver=lxc`) then the operator can also specify LXC options
|
(`docker daemon --exec-driver=lxc`) then the operator can also specify LXC options
|
||||||
using one or more `--lxc-conf` parameters. These can be new parameters or
|
using one or more `--lxc-conf` parameters. These can be new parameters or
|
||||||
override existing parameters from the [lxc-template.go](
|
override existing parameters from the [lxc-template.go](
|
||||||
https://github.com/docker/docker/blob/master/daemon/execdriver/lxc/lxc_template.go).
|
https://github.com/docker/docker/blob/master/daemon/execdriver/lxc/lxc_template.go).
|
||||||
|
|
|
@ -8,7 +8,7 @@ Using `libkv`, the user can plug any of the supported Key-Value store (such as c
|
||||||
User can specify the Key-Value store of choice using the `--kv-store` daemon flag, which takes configuration value of format `PROVIDER:URL`, where
|
User can specify the Key-Value store of choice using the `--kv-store` daemon flag, which takes configuration value of format `PROVIDER:URL`, where
|
||||||
`PROVIDER` is the name of the Key-Value store (such as consul, etcd or zookeeper) and
|
`PROVIDER` is the name of the Key-Value store (such as consul, etcd or zookeeper) and
|
||||||
`URL` is the url to reach the Key-Value store.
|
`URL` is the url to reach the Key-Value store.
|
||||||
Example : `docker -d --kv-store=consul:localhost:8500`
|
Example : `docker daemon --kv-store=consul:localhost:8500`
|
||||||
|
|
||||||
Send us feedback and comments on [#14083](https://github.com/docker/docker/issues/14083)
|
Send us feedback and comments on [#14083](https://github.com/docker/docker/issues/14083)
|
||||||
or on the usual Google Groups (docker-user, docker-dev) and IRC channels.
|
or on the usual Google Groups (docker-user, docker-dev) and IRC channels.
|
||||||
|
|
|
@ -73,7 +73,7 @@ Docker daemon supports a configuration flag `--default-network` which takes conf
|
||||||
`NETWORK` is the name of the network created using the `docker network create` command
|
`NETWORK` is the name of the network created using the `docker network create` command
|
||||||
When a container is created and if the network mode (`--net`) is not specified, then this default network will be used to connect
|
When a container is created and if the network mode (`--net`) is not specified, then this default network will be used to connect
|
||||||
the container. If `--default-network` is not specified, the default network will be the `bridge` driver.
|
the container. If `--default-network` is not specified, the default network will be the `bridge` driver.
|
||||||
Example : `docker -d --default-network=overlay:multihost`
|
Example : `docker daemon --default-network=overlay:multihost`
|
||||||
|
|
||||||
## Using Services
|
## Using Services
|
||||||
|
|
||||||
|
|
|
@ -359,7 +359,7 @@ feature include: automatic or interactive thin-pool resize support, dynamically
|
||||||
changing thin-pool features, automatic thinp metadata checking when lvm activates
|
changing thin-pool features, automatic thinp metadata checking when lvm activates
|
||||||
the thin-pool, etc.
|
the thin-pool, etc.
|
||||||
|
|
||||||
Example use: `docker -d --storage-opt dm.thinpooldev=/dev/mapper/thin-pool`
|
Example use: `docker daemon --storage-opt dm.thinpooldev=/dev/mapper/thin-pool`
|
||||||
|
|
||||||
#### dm.basesize
|
#### dm.basesize
|
||||||
|
|
||||||
|
@ -378,26 +378,26 @@ value requires additional steps to take effect:
|
||||||
$ sudo rm -rf /var/lib/docker
|
$ sudo rm -rf /var/lib/docker
|
||||||
$ sudo service docker start
|
$ sudo service docker start
|
||||||
|
|
||||||
Example use: `docker -d --storage-opt dm.basesize=20G`
|
Example use: `docker daemon --storage-opt dm.basesize=20G`
|
||||||
|
|
||||||
#### dm.fs
|
#### dm.fs
|
||||||
|
|
||||||
Specifies the filesystem type to use for the base device. The
|
Specifies the filesystem type to use for the base device. The
|
||||||
supported options are `ext4` and `xfs`. The default is `ext4`.
|
supported options are `ext4` and `xfs`. The default is `ext4`.
|
||||||
|
|
||||||
Example use: `docker -d --storage-opt dm.fs=xfs`
|
Example use: `docker daemon --storage-opt dm.fs=xfs`
|
||||||
|
|
||||||
#### dm.mkfsarg
|
#### dm.mkfsarg
|
||||||
|
|
||||||
Specifies extra mkfs arguments to be used when creating the base device.
|
Specifies extra mkfs arguments to be used when creating the base device.
|
||||||
|
|
||||||
Example use: `docker -d --storage-opt "dm.mkfsarg=-O ^has_journal"`
|
Example use: `docker daemon --storage-opt "dm.mkfsarg=-O ^has_journal"`
|
||||||
|
|
||||||
#### dm.mountopt
|
#### dm.mountopt
|
||||||
|
|
||||||
Specifies extra mount options used when mounting the thin devices.
|
Specifies extra mount options used when mounting the thin devices.
|
||||||
|
|
||||||
Example use: `docker -d --storage-opt dm.mountopt=nodiscard`
|
Example use: `docker daemon --storage-opt dm.mountopt=nodiscard`
|
||||||
|
|
||||||
#### dm.use_deferred_removal
|
#### dm.use_deferred_removal
|
||||||
|
|
||||||
|
@ -415,7 +415,7 @@ the container exit still succeeds and this option causes the system to schedule
|
||||||
the device for deferred removal. It does not wait in a loop trying to remove a busy
|
the device for deferred removal. It does not wait in a loop trying to remove a busy
|
||||||
device.
|
device.
|
||||||
|
|
||||||
Example use: `docker -d --storage-opt dm.use_deferred_removal=true`
|
Example use: `docker daemon --storage-opt dm.use_deferred_removal=true`
|
||||||
|
|
||||||
#### dm.loopdatasize
|
#### dm.loopdatasize
|
||||||
|
|
||||||
|
@ -426,7 +426,7 @@ Specifies the size to use when creating the loopback file for the
|
||||||
100G. The file is sparse, so it will not initially take up
|
100G. The file is sparse, so it will not initially take up
|
||||||
this much space.
|
this much space.
|
||||||
|
|
||||||
Example use: `docker -d --storage-opt dm.loopdatasize=200G`
|
Example use: `docker daemon --storage-opt dm.loopdatasize=200G`
|
||||||
|
|
||||||
#### dm.loopmetadatasize
|
#### dm.loopmetadatasize
|
||||||
|
|
||||||
|
@ -437,7 +437,7 @@ Specifies the size to use when creating the loopback file for the
|
||||||
is 2G. The file is sparse, so it will not initially take up
|
is 2G. The file is sparse, so it will not initially take up
|
||||||
this much space.
|
this much space.
|
||||||
|
|
||||||
Example use: `docker -d --storage-opt dm.loopmetadatasize=4G`
|
Example use: `docker daemon --storage-opt dm.loopmetadatasize=4G`
|
||||||
|
|
||||||
#### dm.datadev
|
#### dm.datadev
|
||||||
|
|
||||||
|
@ -460,7 +460,7 @@ deprecated.
|
||||||
Specifies a custom blocksize to use for the thin pool. The default
|
Specifies a custom blocksize to use for the thin pool. The default
|
||||||
blocksize is 64K.
|
blocksize is 64K.
|
||||||
|
|
||||||
Example use: `docker -d --storage-opt dm.blocksize=512K`
|
Example use: `docker daemon --storage-opt dm.blocksize=512K`
|
||||||
|
|
||||||
#### dm.blkdiscard
|
#### dm.blkdiscard
|
||||||
|
|
||||||
|
@ -474,7 +474,7 @@ times, but it also prevents the space used in `/var/lib/docker` directory
|
||||||
from being returned to the system for other use when containers are
|
from being returned to the system for other use when containers are
|
||||||
removed.
|
removed.
|
||||||
|
|
||||||
Example use: `docker -d --storage-opt dm.blkdiscard=false`
|
Example use: `docker daemon --storage-opt dm.blkdiscard=false`
|
||||||
|
|
||||||
#### dm.override_udev_sync_check
|
#### dm.override_udev_sync_check
|
||||||
|
|
||||||
|
@ -503,7 +503,7 @@ failures, see
|
||||||
To allow the `docker` daemon to start, regardless of whether `udev` sync is
|
To allow the `docker` daemon to start, regardless of whether `udev` sync is
|
||||||
`false`, set `dm.override_udev_sync_check` to true:
|
`false`, set `dm.override_udev_sync_check` to true:
|
||||||
|
|
||||||
$ docker -d --storage-opt dm.override_udev_sync_check=true
|
$ docker daemon --storage-opt dm.override_udev_sync_check=true
|
||||||
|
|
||||||
When this value is `true`, the driver continues and simply warns you
|
When this value is `true`, the driver continues and simply warns you
|
||||||
the errors are happening.
|
the errors are happening.
|
||||||
|
|
Loading…
Reference in New Issue