Sfoglia il codice sorgente

Merge pull request #27476 from yuexiao-wang/fix-typos-volume

Fix some typos
Justin Cormack 8 anni fa
parent
commit
1feaeac65c

+ 1 - 1
cli/command/container/inspect.go

@@ -30,7 +30,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
 	}
 
 	flags := cmd.Flags()
-	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
+	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
 	flags.BoolVarP(&opts.size, "size", "s", false, "Display total file sizes")
 
 	return cmd

+ 1 - 1
cli/command/image/inspect.go

@@ -29,7 +29,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
 	}
 
 	flags := cmd.Flags()
-	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
+	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
 	return cmd
 }
 

+ 1 - 1
cli/command/network/inspect.go

@@ -27,7 +27,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
 		},
 	}
 
-	cmd.Flags().StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
+	cmd.Flags().StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
 
 	return cmd
 }

+ 1 - 1
cli/command/node/inspect.go

@@ -36,7 +36,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
 	}
 
 	flags := cmd.Flags()
-	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
+	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
 	flags.BoolVar(&opts.pretty, "pretty", false, "Print the information in a human friendly format.")
 	return cmd
 }

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

@@ -32,7 +32,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
 	}
 
 	flags := cmd.Flags()
-	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
+	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
 	return cmd
 }
 

+ 1 - 1
cli/command/service/inspect.go

@@ -37,7 +37,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
 	}
 
 	flags := cmd.Flags()
-	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
+	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
 	flags.BoolVar(&opts.pretty, "pretty", false, "Print the information in a human friendly format.")
 	return cmd
 }

+ 1 - 1
cli/command/system/events.go

@@ -45,7 +45,7 @@ func NewEventsCommand(dockerCli *command.DockerCli) *cobra.Command {
 	flags.StringVar(&opts.since, "since", "", "Show all events created since timestamp")
 	flags.StringVar(&opts.until, "until", "", "Stream events until this timestamp")
 	flags.VarP(&opts.filter, "filter", "f", "Filter output based on conditions provided")
-	flags.StringVar(&opts.format, "format", "", "Format the output using the given go template")
+	flags.StringVar(&opts.format, "format", "", "Format the output using the given Go template")
 
 	return cmd
 }

+ 1 - 1
cli/command/system/info.go

@@ -37,7 +37,7 @@ func NewInfoCommand(dockerCli *command.DockerCli) *cobra.Command {
 
 	flags := cmd.Flags()
 
-	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
+	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
 
 	return cmd
 }

+ 1 - 1
cli/command/system/inspect.go

@@ -35,7 +35,7 @@ func NewInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
 	}
 
 	flags := cmd.Flags()
-	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
+	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
 	flags.StringVar(&opts.inspectType, "type", "", "Return JSON for specified type")
 	flags.BoolVarP(&opts.size, "size", "s", false, "Display total file sizes if the type is container")
 

+ 1 - 1
cli/command/system/version.go

@@ -52,7 +52,7 @@ func NewVersionCommand(dockerCli *command.DockerCli) *cobra.Command {
 
 	flags := cmd.Flags()
 
-	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
+	flags.StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
 
 	return cmd
 }

+ 1 - 1
cli/command/volume/inspect.go

@@ -28,7 +28,7 @@ func newInspectCommand(dockerCli *command.DockerCli) *cobra.Command {
 		},
 	}
 
-	cmd.Flags().StringVarP(&opts.format, "format", "f", "", "Format the output using the given go template")
+	cmd.Flags().StringVarP(&opts.format, "format", "f", "", "Format the output using the given Go template")
 
 	return cmd
 }

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

@@ -13,7 +13,7 @@ Get real time events from the server
 
 Options:
   -f, --filter value   Filter output based on conditions provided (default [])
-      --format string  Format the output using the given go template
+      --format string  Format the output using the given Go template
       --help           Print usage
       --since string   Show all events created since timestamp
       --until string   Stream events until this timestamp

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

@@ -12,7 +12,7 @@ Usage:  docker info [OPTIONS]
 Display system-wide information
 
 Options:
-  -f, --format string   Format the output using the given go template
+  -f, --format string   Format the output using the given Go template
       --help            Print usage
 ```
 

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

@@ -13,7 +13,7 @@ Return low-level information on one or multiple containers, images, volumes,
 networks, nodes, services, or tasks identified by name or ID.
 
 Options:
-  -f, --format       Format the output using the given go template
+  -f, --format       Format the output using the given Go template
       --help         Print usage
   -s, --size         Display total file sizes if the type is container
                      values are "image" or "container" or "task

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

@@ -12,7 +12,7 @@ Usage:  docker network inspect [OPTIONS] NETWORK [NETWORK...]
 Display detailed information on one or more networks
 
 Options:
-  -f, --format string   Format the output using the given go template
+  -f, --format string   Format the output using the given Go template
       --help            Print usage
 ```
 

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

@@ -12,7 +12,7 @@ Usage:  docker node inspect [OPTIONS] self|NODE [NODE...]
 Display detailed information on one or more nodes
 
 Options:
-  -f, --format string   Format the output using the given go template
+  -f, --format string   Format the output using the given Go template
       --help            Print usage
       --pretty          Print the information in a human friendly format.
 ```

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

@@ -13,7 +13,7 @@ Usage:  docker plugin inspect [OPTIONS] PLUGIN [PLUGIN...]
 Display detailed information on one or more plugins
 
 Options:
-      -f, --format string   Format the output using the given go template
+      -f, --format string   Format the output using the given Go template
           --help            Print usage
 ```
 

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

@@ -12,7 +12,7 @@ Usage:  docker service inspect [OPTIONS] SERVICE [SERVICE...]
 Display detailed information on one or more services
 
 Options:
-  -f, --format string   Format the output using the given go template
+  -f, --format string   Format the output using the given Go template
       --help            Print usage
       --pretty          Print the information in a human friendly format.
 ```

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

@@ -60,6 +60,7 @@ Total reclaimed space: 13.5 MB
 * [volume ls](volume_ls.md)
 * [volume inspect](volume_inspect.md)
 * [volume rm](volume_rm.md)
+* [volume prune](volume_prune.md)
 * [Understand Data Volumes](../../tutorials/dockervolumes.md)
 * [system df](system_df.md)
 * [container prune](container_prune.md)

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

@@ -12,7 +12,7 @@ Usage:  docker version [OPTIONS]
 Show the Docker version information
 
 Options:
-  -f, --format string   Format the output using the given go template
+  -f, --format string   Format the output using the given Go template
       --help            Print usage
 ```
 

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

@@ -78,4 +78,5 @@ $ docker volume create --driver local --opt type=nfs --opt o=addr=192.168.1.1,rw
 * [volume inspect](volume_inspect.md)
 * [volume ls](volume_ls.md)
 * [volume rm](volume_rm.md)
+* [volume prune](volume_prune.md)
 * [Understand Data Volumes](../../tutorials/dockervolumes.md)

+ 2 - 1
docs/reference/commandline/volume_inspect.md

@@ -12,7 +12,7 @@ Usage:  docker volume inspect [OPTIONS] VOLUME [VOLUME...]
 Display detailed information on one or more volumes
 
 Options:
-  -f, --format string   Format the output using the given go template
+  -f, --format string   Format the output using the given Go template
       --help            Print usage
 ```
 
@@ -44,4 +44,5 @@ Example output:
 * [volume create](volume_create.md)
 * [volume ls](volume_ls.md)
 * [volume rm](volume_rm.md)
+* [volume prune](volume_prune.md)
 * [Understand Data Volumes](../../tutorials/dockervolumes.md)

+ 2 - 1
docs/reference/commandline/volume_ls.md

@@ -25,7 +25,7 @@ Options:
   -q, --quiet          Only display volume names
 ```
 
-Lists all the volumes Docker knows about. You can filter using the `-f` or `--filter` flag. Refer to the [filtering](#filtering) section for more information about available filter options.
+List all the volumes Docker knows about. You can filter using the `-f` or `--filter` flag. Refer to the [filtering](#filtering) section for more information about available filter options.
 
 Example output:
 
@@ -170,4 +170,5 @@ vol3: local
 * [volume create](volume_create.md)
 * [volume inspect](volume_inspect.md)
 * [volume rm](volume_rm.md)
+* [volume prune](volume_prune.md)
 * [Understand Data Volumes](../../tutorials/dockervolumes.md)

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

@@ -30,4 +30,5 @@ Remove one or more volumes. You cannot remove a volume that is in use by a conta
 * [volume create](volume_create.md)
 * [volume inspect](volume_inspect.md)
 * [volume ls](volume_ls.md)
+* [volume prune](volume_prune.md)
 * [Understand Data Volumes](../../tutorials/dockervolumes.md)

+ 1 - 1
man/docker-events.1.md

@@ -47,7 +47,7 @@ Docker networks report the following events:
    Stream events until this timestamp
 
 **--format**=""
-   Format the output using the given go template
+   Format the output using the given Go template
 
 The `--since` and `--until` parameters can be Unix timestamps, date formatted
 timestamps, or Go duration strings (e.g. `10m`, `1h30m`) computed

+ 1 - 1
man/docker-info.1.md

@@ -33,7 +33,7 @@ available on the volume where `/var/lib/docker` is mounted.
   Print usage statement
 
 **-f**, **--format**=""
-  Format the output using the given go template
+  Format the output using the given Go template
 
 # EXAMPLES
 

+ 1 - 1
man/docker-network-inspect.1.md

@@ -103,7 +103,7 @@ $ docker network inspect simple-network
 
 # OPTIONS
 **-f**, **--format**=""
-  Format the output using the given go template.
+  Format the output using the given Go template.
 
 **--help**
   Print usage statement

+ 1 - 1
man/docker-version.1.md

@@ -18,7 +18,7 @@ daemon.
     Print usage statement
 
 **-f**, **--format**=""
-    Format the output using the given go template.
+    Format the output using the given Go template.
 
 # EXAMPLES