Browse code

Add the OPTIONS and Fix the links for contain prune

Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>

yuexiao-wang authored on 2016/10/11 00:07:32
Showing 8 changed files
... ...
@@ -21,7 +21,7 @@ func NewPruneCommand(dockerCli *command.DockerCli) *cobra.Command {
21 21
 	var opts pruneOptions
22 22
 
23 23
 	cmd := &cobra.Command{
24
-		Use:   "prune",
24
+		Use:   "prune [OPTIONS]",
25 25
 		Short: "Remove all stopped containers",
26 26
 		Args:  cli.NoArgs,
27 27
 		RunE: func(cmd *cobra.Command, args []string) error {
... ...
@@ -22,7 +22,7 @@ func NewPruneCommand(dockerCli *command.DockerCli) *cobra.Command {
22 22
 	var opts pruneOptions
23 23
 
24 24
 	cmd := &cobra.Command{
25
-		Use:   "prune",
25
+		Use:   "prune [OPTIONS]",
26 26
 		Short: "Remove unused images",
27 27
 		Args:  cli.NoArgs,
28 28
 		RunE: func(cmd *cobra.Command, args []string) error {
... ...
@@ -20,7 +20,7 @@ func NewPruneCommand(dockerCli *command.DockerCli) *cobra.Command {
20 20
 	var opts pruneOptions
21 21
 
22 22
 	cmd := &cobra.Command{
23
-		Use:   "prune [COMMAND]",
23
+		Use:   "prune [OPTIONS]",
24 24
 		Short: "Remove unused data.",
25 25
 		Args:  cli.NoArgs,
26 26
 		RunE: func(cmd *cobra.Command, args []string) error {
... ...
@@ -21,7 +21,7 @@ func NewPruneCommand(dockerCli *command.DockerCli) *cobra.Command {
21 21
 	var opts pruneOptions
22 22
 
23 23
 	cmd := &cobra.Command{
24
-		Use:   "prune",
24
+		Use:   "prune [OPTIONS]",
25 25
 		Short: "Remove all unused volumes",
26 26
 		Args:  cli.NoArgs,
27 27
 		RunE: func(cmd *cobra.Command, args []string) error {
... ...
@@ -11,7 +11,7 @@ parent = "smn_cli"
11 11
 # container prune
12 12
 
13 13
 ```markdown
14
-Usage:	docker container prune
14
+Usage:	docker container prune [OPTIONS]
15 15
 
16 16
 Remove all stopped containers
17 17
 
... ...
@@ -20,7 +20,7 @@ Options:
20 20
       --help    Print usage
21 21
 ```
22 22
 
23
-Example output:
23
+## Examples
24 24
 
25 25
 ```bash
26 26
 $ docker container prune
... ...
@@ -36,6 +36,6 @@ Total reclaimed space: 212 B
36 36
 ## Related information
37 37
 
38 38
 * [system df](system_df.md)
39
-* [volume prune](container_prune.md)
40
-* [image prune](container_prune.md)
39
+* [volume prune](volume_prune.md)
40
+* [image prune](image_prune.md)
41 41
 * [system prune](system_prune.md)
... ...
@@ -11,7 +11,7 @@ parent = "smn_cli"
11 11
 # image prune
12 12
 
13 13
 ```markdown
14
-Usage:	docker image prune
14
+Usage:	docker image prune [OPTIONS]
15 15
 
16 16
 Remove unused images
17 17
 
... ...
@@ -11,7 +11,7 @@ parent = "smn_cli"
11 11
 # system prune
12 12
 
13 13
 ```markdown
14
-Usage:	docker system prune COMMAND
14
+Usage:	docker system prune [OPTIONS]
15 15
 
16 16
 Delete unused data
17 17
 
... ...
@@ -11,7 +11,7 @@ parent = "smn_cli"
11 11
 # volume prune
12 12
 
13 13
 ```markdown
14
-Usage:	docker volume prune
14
+Usage:	docker volume prune [OPTIONS]
15 15
 
16 16
 Remove all unused volumes
17 17