1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #16144 from albers/fix-volume-optional

[Fix 16122] usage for `docker volume inspect` and `docker volume rm`
This commit is contained in:
Jess Frazelle 2015-09-08 11:18:43 -07:00
commit 2b6da0a965
5 changed files with 10 additions and 10 deletions

View file

@ -102,7 +102,7 @@ func (cli *DockerCli) CmdVolumeLs(args ...string) error {
//
// Usage: docker volume inspect [OPTIONS] VOLUME [VOLUME...]
func (cli *DockerCli) CmdVolumeInspect(args ...string) error {
cmd := Cli.Subcmd("volume inspect", []string{"[VOLUME NAME]"}, "Return low-level information on a volume", true)
cmd := Cli.Subcmd("volume inspect", []string{"VOLUME [VOLUME...]"}, "Return low-level information on a volume", true)
tmplStr := cmd.String([]string{"f", "-format"}, "", "Format the output using the given go template.")
if err := cmd.Parse(args); err != nil {
return nil
@ -210,7 +210,7 @@ func (cli *DockerCli) CmdVolumeCreate(args ...string) error {
//
// Usage: docker volume rm VOLUME [VOLUME...]
func (cli *DockerCli) CmdVolumeRm(args ...string) error {
cmd := Cli.Subcmd("volume rm", []string{"[NAME]"}, "Remove a volume", true)
cmd := Cli.Subcmd("volume rm", []string{"VOLUME [VOLUME...]"}, "Remove a volume", true)
cmd.Require(flag.Min, 1)
cmd.ParseFlags(args, true)

View file

@ -10,9 +10,9 @@ parent = "smn_cli"
# volume inspect
Usage: docker volume inspect [OPTIONS] [VOLUME NAME]
Usage: docker volume inspect [OPTIONS] VOLUME [VOLUME...]
Inspect a volume
Inspect one or more volumes
-f, --format= Format the output using the given go template.

View file

@ -10,13 +10,13 @@ parent = "smn_cli"
# volume rm
Usage: docker volume rm [OPTIONS] [VOLUME NAME]
Usage: docker volume rm [OPTIONS] VOLUME [VOLUME...]
Remove a volume
--help=false Print usage
Removes a volume. You cannot remove a volume that is in use by a container.
Removes one or more volumes. You cannot remove a volume that is in use by a container.
$ docker volume rm hello
hello

View file

@ -8,11 +8,11 @@ docker-volume-inspect - Get low-level information about a volume
**docker volume inspect**
[**-f**|**--format**[=**]]
[OPTIONS] [VOLUME NAME]
[OPTIONS] VOLUME [VOLUME...]
# DESCRIPTION
Returns information about a volume. By default, this command renders all results
Returns information about one or more volumes. By default, this command renders all results
in a JSON array. You can specify an alternate format to execute a given template
is executed for each result. Go's
http://golang.org/pkg/text/template/ package describes all the details of the

View file

@ -7,11 +7,11 @@ docker-volume-rm - Remove a volume
# SYNOPSIS
**docker volume rm**
[OPTIONS] [VOLUME NAME]
[OPTIONS] VOLUME [VOLUME...]
# DESCRIPTION
Removes a volume. You cannot remove a volume that is in use by a container.
Removes one or more volumes. You cannot remove a volume that is in use by a container.
```
$ docker volume rm hello