ソースを参照

Merge pull request #27249 from yuexiao-wang/container-prune

Add the OPTIONS and Fix the links for prune
Vincent Demeester 8 年 前
コミット
9115b65ffd

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

@@ -21,7 +21,7 @@ func NewPruneCommand(dockerCli *command.DockerCli) *cobra.Command {
 	var opts pruneOptions
 
 	cmd := &cobra.Command{
-		Use:   "prune",
+		Use:   "prune [OPTIONS]",
 		Short: "Remove all stopped containers",
 		Args:  cli.NoArgs,
 		RunE: func(cmd *cobra.Command, args []string) error {

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

@@ -22,7 +22,7 @@ func NewPruneCommand(dockerCli *command.DockerCli) *cobra.Command {
 	var opts pruneOptions
 
 	cmd := &cobra.Command{
-		Use:   "prune",
+		Use:   "prune [OPTIONS]",
 		Short: "Remove unused images",
 		Args:  cli.NoArgs,
 		RunE: func(cmd *cobra.Command, args []string) error {

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

@@ -20,7 +20,7 @@ func NewPruneCommand(dockerCli *command.DockerCli) *cobra.Command {
 	var opts pruneOptions
 
 	cmd := &cobra.Command{
-		Use:   "prune [COMMAND]",
+		Use:   "prune [OPTIONS]",
 		Short: "Remove unused data.",
 		Args:  cli.NoArgs,
 		RunE: func(cmd *cobra.Command, args []string) error {

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

@@ -21,7 +21,7 @@ func NewPruneCommand(dockerCli *command.DockerCli) *cobra.Command {
 	var opts pruneOptions
 
 	cmd := &cobra.Command{
-		Use:   "prune",
+		Use:   "prune [OPTIONS]",
 		Short: "Remove all unused volumes",
 		Args:  cli.NoArgs,
 		RunE: func(cmd *cobra.Command, args []string) error {

+ 4 - 4
docs/reference/commandline/container_prune.md

@@ -11,7 +11,7 @@ parent = "smn_cli"
 # container prune
 
 ```markdown
-Usage:	docker container prune
+Usage:	docker container prune [OPTIONS]
 
 Remove all stopped containers
 
@@ -20,7 +20,7 @@ Options:
       --help    Print usage
 ```
 
-Example output:
+## Examples
 
 ```bash
 $ docker container prune
@@ -36,6 +36,6 @@ Total reclaimed space: 212 B
 ## Related information
 
 * [system df](system_df.md)
-* [volume prune](container_prune.md)
-* [image prune](container_prune.md)
+* [volume prune](volume_prune.md)
+* [image prune](image_prune.md)
 * [system prune](system_prune.md)

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

@@ -11,7 +11,7 @@ parent = "smn_cli"
 # image prune
 
 ```markdown
-Usage:	docker image prune
+Usage:	docker image prune [OPTIONS]
 
 Remove unused images
 

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

@@ -11,7 +11,7 @@ parent = "smn_cli"
 # system prune
 
 ```markdown
-Usage:	docker system prune COMMAND
+Usage:	docker system prune [OPTIONS]
 
 Delete unused data
 

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

@@ -11,7 +11,7 @@ parent = "smn_cli"
 # volume prune
 
 ```markdown
-Usage:	docker volume prune
+Usage:	docker volume prune [OPTIONS]
 
 Remove all unused volumes