소스 검색

Merge pull request #28802 from yuexiao-wang/fix-cli-typo

Add options for docker plugin enable and fix some typos
Vincent Demeester 8 년 전
부모
커밋
7aae360c41
4개의 변경된 파일4개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 1
      cli/command/plugin/enable.go
  2. 2 3
      docs/reference/commandline/cli.md
  3. 0 1
      docs/reference/commandline/dockerd.md
  4. 1 1
      docs/reference/commandline/plugin_enable.md

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

@@ -20,7 +20,7 @@ func newEnableCommand(dockerCli *command.DockerCli) *cobra.Command {
 	var opts enableOpts
 
 	cmd := &cobra.Command{
-		Use:   "enable PLUGIN",
+		Use:   "enable [OPTIONS] PLUGIN",
 		Short: "Enable a plugin",
 		Args:  cli.ExactArgs(1),
 		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.
 
 Options:
-
       --config string      Location of client config files (default "/root/.docker")
   -D, --debug              Enable debug mode
       --help               Print usage
@@ -72,8 +71,8 @@ by the `docker` command line:
   to the same URL as the registry.
 * `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`
 * `HTTPS_PROXY`

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

@@ -22,7 +22,6 @@ Usage: dockerd [OPTIONS]
 A self-sufficient runtime for containers.
 
 Options:
-
       --add-runtime value                     Register an additional OCI compatible runtime (default [])
       --api-cors-header string                Set CORS headers in the Engine API
       --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
 
 ```markdown
-Usage:  docker plugin enable PLUGIN
+Usage:  docker plugin enable [OPTIONS] PLUGIN
 
 Enable a plugin