소스 검색

Merge pull request #27478 from allencloud/wrap-line-in-deleted-containers

wrap line in deleted containers when pruning
Justin Cormack 8 년 전
부모
커밋
1643110ef4
2개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      cli/command/container/prune.go
  2. 2 1
      docs/reference/commandline/system_prune.md

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

@@ -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"
 		}

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

@@ -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: