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

wrap line in deleted containers when pruning

Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
allencloud 2016-10-18 14:20:12 +08:00
parent cd0e399e06
commit dcb4d68092
2 changed files with 3 additions and 2 deletions

View file

@ -57,7 +57,7 @@ func runPrune(dockerCli *command.DockerCli, opts pruneOptions) (spaceReclaimed u
}
if len(report.ContainersDeleted) > 0 {
output = "Deleted Containers:"
output = "Deleted Containers:\n"
for _, id := range report.ContainersDeleted {
output += id + "\n"
}

View file

@ -28,7 +28,8 @@ WARNING! This will remove:
- all volumes not used by at least one container
- all images without at least one container associated to them
Are you sure you want to continue? [y/N] y
Deleted Containers:0998aa37185a1a7036b0e12cf1ac1b6442dcfa30a5c9650a42ed5010046f195b
Deleted Containers:
0998aa37185a1a7036b0e12cf1ac1b6442dcfa30a5c9650a42ed5010046f195b
73958bfb884fa81fa4cc6baf61055667e940ea2357b4036acbbe25a60f442a4d
Deleted Volumes: