Pārlūkot izejas kodu

Add options for docker plugin enable and fix some typos

Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
(cherry picked from commit 9e414bfa6b26bf919fc7ffbf0cf87814043b328b)
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
yuexiao-wang 8 gadi atpakaļ
vecāks
revīzija
05a75a567a

+ 1 - 1
cli/command/plugin/enable.go

@@ -20,7 +20,7 @@ func newEnableCommand(dockerCli *command.DockerCli) *cobra.Command {
 	var opts enableOpts
 	var opts enableOpts
 
 
 	cmd := &cobra.Command{
 	cmd := &cobra.Command{
-		Use:   "enable PLUGIN",
+		Use:   "enable [OPTIONS] PLUGIN",
 		Short: "Enable a plugin",
 		Short: "Enable a plugin",
 		Args:  cli.ExactArgs(1),
 		Args:  cli.ExactArgs(1),
 		RunE: func(cmd *cobra.Command, args []string) error {
 		RunE: func(cmd *cobra.Command, args []string) error {

+ 2 - 3
docs/reference/commandline/cli.md

@@ -26,7 +26,6 @@ Usage: docker [OPTIONS] COMMAND [ARG...]
 A self-sufficient runtime for containers.
 A self-sufficient runtime for containers.
 
 
 Options:
 Options:
-
       --config string      Location of client config files (default "/root/.docker")
       --config string      Location of client config files (default "/root/.docker")
   -D, --debug              Enable debug mode
   -D, --debug              Enable debug mode
       --help               Print usage
       --help               Print usage
@@ -72,8 +71,8 @@ by the `docker` command line:
   to the same URL as the registry.
   to the same URL as the registry.
 * `DOCKER_TMPDIR` Location for temporary Docker files.
 * `DOCKER_TMPDIR` Location for temporary Docker files.
 
 
-Because Docker is developed using 'Go', you can also use any environment
-variables used by the 'Go' runtime. In particular, you may find these useful:
+Because Docker is developed using Go, you can also use any environment
+variables used by the Go runtime. In particular, you may find these useful:
 
 
 * `HTTP_PROXY`
 * `HTTP_PROXY`
 * `HTTPS_PROXY`
 * `HTTPS_PROXY`

+ 0 - 1
docs/reference/commandline/dockerd.md

@@ -22,7 +22,6 @@ Usage: dockerd [OPTIONS]
 A self-sufficient runtime for containers.
 A self-sufficient runtime for containers.
 
 
 Options:
 Options:
-
       --add-runtime value                     Register an additional OCI compatible runtime (default [])
       --add-runtime value                     Register an additional OCI compatible runtime (default [])
       --api-cors-header string                Set CORS headers in the Engine API
       --api-cors-header string                Set CORS headers in the Engine API
       --authorization-plugin value            Authorization plugins to load (default [])
       --authorization-plugin value            Authorization plugins to load (default [])

+ 1 - 1
docs/reference/commandline/plugin_enable.md

@@ -16,7 +16,7 @@ keywords: "plugin, enable"
 # plugin enable
 # plugin enable
 
 
 ```markdown
 ```markdown
-Usage:  docker plugin enable PLUGIN
+Usage:  docker plugin enable [OPTIONS] PLUGIN
 
 
 Enable a plugin
 Enable a plugin