mirror of https://github.com/docker/cli.git
change flag name to better follow the other flags that start with disable;
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
This commit is contained in:
parent
fba8aeb14b
commit
0afb6cc862
|
@ -20,12 +20,12 @@
|
|||
# You can tailor completion for the "events", "history", "inspect", "run",
|
||||
# "rmi" and "save" commands by settings the following environment
|
||||
# variables:
|
||||
#
|
||||
#
|
||||
# DOCKER_COMPLETION_SHOW_IMAGE_IDS
|
||||
# "none" - Show names only (default)
|
||||
# "non-intermediate" - Show names and ids, but omit intermediate image IDs
|
||||
# "all" - Show names and ids, including intermediate image IDs
|
||||
#
|
||||
#
|
||||
# DOCKER_COMPLETION_SHOW_TAGS
|
||||
# "yes" - include tags in completion options (default)
|
||||
# "no" - don't include tags in completion options
|
||||
|
@ -520,13 +520,13 @@ _docker_create() {
|
|||
_docker_daemon() {
|
||||
local boolean_options="
|
||||
$global_boolean_options
|
||||
--disable-legacy-registry
|
||||
--help
|
||||
--icc=false
|
||||
--ip-forward=false
|
||||
--ip-masq=false
|
||||
--iptables=false
|
||||
--ipv6
|
||||
--no-legacy-registry
|
||||
--selinux-enabled
|
||||
--userland-proxy=false
|
||||
"
|
||||
|
|
|
@ -432,6 +432,7 @@ __docker_subcommand() {
|
|||
"($help)*--dns-search=-[DNS search domains to use]:DNS search: " \
|
||||
"($help)*--dns-opt=-[DNS options to use]:DNS option: " \
|
||||
"($help)*--default-ulimit=-[Set default ulimit settings for containers]:ulimit: " \
|
||||
"($help)--disable-legacy-registry[Do not contact legacy registries]" \
|
||||
"($help -e --exec-driver)"{-e,--exec-driver=-}"[Exec driver to use]:driver:(native lxc windows)" \
|
||||
"($help)*--exec-opt=-[Set exec driver options]:exec driver options: " \
|
||||
"($help)--exec-root=-[Root of the Docker execdriver]:path:_directories" \
|
||||
|
@ -452,7 +453,6 @@ __docker_subcommand() {
|
|||
"($help)--log-driver=-[Default driver for container logs]:Logging driver:(json-file syslog journald gelf fluentd awslogs none)" \
|
||||
"($help)*--log-opt=-[Log driver specific options]:log driver options: " \
|
||||
"($help)--mtu=-[Set the containers network MTU]:mtu:(0 576 1420 1500 9000)" \
|
||||
"($help)--no-legacy-registry[Do not contact legacy registries]" \
|
||||
"($help -p --pidfile)"{-p,--pidfile=-}"[Path to use for daemon PID file]:PID file:_files" \
|
||||
"($help)*--registry-mirror=-[Preferred Docker registry mirror]:registry mirror: " \
|
||||
"($help -s --storage-driver)"{-s,--storage-driver=-}"[Storage driver to use]:driver:(aufs devicemapper btrfs zfs overlay)" \
|
||||
|
|
|
@ -49,7 +49,7 @@ weight=1
|
|||
--log-driver="json-file" Default driver for container logs
|
||||
--log-opt=[] Log driver specific options
|
||||
--mtu=0 Set the containers network MTU
|
||||
--no-legacy-registry=false Do not contact legacy registries
|
||||
--disable-legacy-registry=false Do not contact legacy registries
|
||||
-p, --pidfile="/var/run/docker.pid" Path to use for daemon PID file
|
||||
--registry-mirror=[] Preferred Docker registry mirror
|
||||
-s, --storage-driver="" Storage driver to use
|
||||
|
@ -187,7 +187,7 @@ options for `zfs` start with `zfs`.
|
|||
|
||||
If using a block device for device mapper storage, it is best to use `lvm`
|
||||
to create and manage the thin-pool volume. This volume is then handed to Docker
|
||||
to exclusively create snapshot volumes needed for images and containers.
|
||||
to exclusively create snapshot volumes needed for images and containers.
|
||||
|
||||
Managing the thin-pool outside of Docker makes for the most feature-rich
|
||||
method of having Docker utilize device mapper thin provisioning as the
|
||||
|
@ -198,7 +198,7 @@ options for `zfs` start with `zfs`.
|
|||
|
||||
As a fallback if no thin pool is provided, loopback files will be
|
||||
created. Loopback is very slow, but can be used without any
|
||||
pre-configuration of storage. It is strongly recommended that you do
|
||||
pre-configuration of storage. It is strongly recommended that you do
|
||||
not use loopback in production. Ensure your Docker daemon has a
|
||||
`--storage-opt dm.thinpooldev` argument provided.
|
||||
|
||||
|
@ -229,7 +229,7 @@ options for `zfs` start with `zfs`.
|
|||
* `dm.loopdatasize`
|
||||
|
||||
>**Note**: This option configures devicemapper loopback, which should not be used in production.
|
||||
|
||||
|
||||
Specifies the size to use when creating the loopback file for the
|
||||
"data" device which is used for the thin pool. The default size is
|
||||
100G. The file is sparse, so it will not initially take up this
|
||||
|
@ -493,14 +493,14 @@ automatically marked as insecure as of Docker 1.3.2. It is not recommended to
|
|||
rely on this, as it may change in the future.
|
||||
|
||||
Enabling `--insecure-registry`, i.e., allowing un-encrypted and/or untrusted
|
||||
communication, can be useful when running a local registry. However,
|
||||
communication, can be 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
|
||||
testing purposes. For increased security, users should add their CA to their
|
||||
system's list of trusted CAs instead of enabling `--insecure-registry`.
|
||||
|
||||
## Legacy Registries
|
||||
|
||||
Enabling `--no-legacy-registry` forces a docker daemon to only interact with registries which support the V2 protocol. Specifically, the daemon will not attempt `push`, `pull` and `login` to v1 registries. The exception to this is `search` which can still be performed on v1 registries.
|
||||
Enabling `--disable-legacy-registry` forces a docker daemon to only interact with registries which support the V2 protocol. Specifically, the daemon will not attempt `push`, `pull` and `login` to v1 registries. The exception to this is `search` which can still be performed on v1 registries.
|
||||
|
||||
## Running a Docker daemon behind a HTTPS_PROXY
|
||||
|
||||
|
@ -524,7 +524,7 @@ use the proxy
|
|||
`--default-ulimit` allows you to set the default `ulimit` options to use for
|
||||
all containers. It takes the same options as `--ulimit` for `docker run`. If
|
||||
these defaults are not set, `ulimit` settings will be inherited, if not set on
|
||||
`docker run`, from the Docker daemon. Any `--ulimit` options passed to
|
||||
`docker run`, from the Docker daemon. Any `--ulimit` options passed to
|
||||
`docker run` will overwrite these defaults.
|
||||
|
||||
Be careful setting `nproc` with the `ulimit` flag as `nproc` is designed by Linux to
|
||||
|
|
|
@ -13,6 +13,7 @@ docker-daemon - Enable daemon mode
|
|||
[**--default-gateway**[=*DEFAULT-GATEWAY*]]
|
||||
[**--default-gateway-v6**[=*DEFAULT-GATEWAY-V6*]]
|
||||
[**--default-ulimit**[=*[]*]]
|
||||
[**--disable-legacy-registry**[=*false*]]
|
||||
[**--dns**[=*[]*]]
|
||||
[**--dns-opt**[=*[]*]]
|
||||
[**--dns-search**[=*[]*]]
|
||||
|
@ -37,7 +38,6 @@ docker-daemon - Enable daemon mode
|
|||
[**--log-driver**[=*json-file*]]
|
||||
[**--log-opt**[=*map[]*]]
|
||||
[**--mtu**[=*0*]]
|
||||
[**--no-legacy-registry**[=*false*]]
|
||||
[**-p**|**--pidfile**[=*/var/run/docker.pid*]]
|
||||
[**--registry-mirror**[=*[]*]]
|
||||
[**-s**|**--storage-driver**[=*STORAGE-DRIVER*]]
|
||||
|
@ -86,6 +86,9 @@ format.
|
|||
**--default-ulimit**=[]
|
||||
Set default ulimits for containers.
|
||||
|
||||
**--disable-legacy-registry**=*true*|*false*
|
||||
Do not contact legacy registries
|
||||
|
||||
**--dns**=""
|
||||
Force Docker to use specific DNS servers
|
||||
|
||||
|
@ -133,7 +136,7 @@ unix://[/path/to/socket] to use.
|
|||
|
||||
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.
|
||||
|
||||
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`.
|
||||
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`.
|
||||
|
||||
**--ip**=""
|
||||
Default IP address to use when binding container ports. Default is `0.0.0.0`.
|
||||
|
@ -168,9 +171,6 @@ unix://[/path/to/socket] to use.
|
|||
**--mtu**=VALUE
|
||||
Set the containers network mtu. Default is `0`.
|
||||
|
||||
**--no-legacy-registry**=*true*|*false*
|
||||
Do not contact legacy registries
|
||||
|
||||
**-p**, **--pidfile**=""
|
||||
Path to use for daemon PID file. Default is `/var/run/docker.pid`
|
||||
|
||||
|
|
Loading…
Reference in New Issue