Browse code

wrap line in deleted containers when pruning

Signed-off-by: allencloud <allen.sun@daocloud.io>

allencloud authored on 2016/10/18 15:20:12
Showing 2 changed files
... ...
@@ -57,7 +57,7 @@ func runPrune(dockerCli *command.DockerCli, opts pruneOptions) (spaceReclaimed u
57 57
 	}
58 58
 
59 59
 	if len(report.ContainersDeleted) > 0 {
60
-		output = "Deleted Containers:"
60
+		output = "Deleted Containers:\n"
61 61
 		for _, id := range report.ContainersDeleted {
62 62
 			output += id + "\n"
63 63
 		}
... ...
@@ -28,7 +28,8 @@ WARNING! This will remove:
28 28
 	- all volumes not used by at least one container
29 29
 	- all images without at least one container associated to them
30 30
 Are you sure you want to continue? [y/N] y
31
-Deleted Containers:0998aa37185a1a7036b0e12cf1ac1b6442dcfa30a5c9650a42ed5010046f195b
31
+Deleted Containers:
32
+0998aa37185a1a7036b0e12cf1ac1b6442dcfa30a5c9650a42ed5010046f195b
32 33
 73958bfb884fa81fa4cc6baf61055667e940ea2357b4036acbbe25a60f442a4d
33 34
 
34 35
 Deleted Volumes: