Переглянути джерело

Make sure the last line of docker build is the image id

Guillaume J. Charmes 12 роки тому
батько
коміт
54af053623
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      buildfile.go

+ 1 - 1
buildfile.go

@@ -355,7 +355,7 @@ func (b *buildFile) Build(dockerfile, context io.Reader) (string, error) {
 		for i := range b.tmpImages {
 			delete(b.tmpImages, i)
 		}
-		fmt.Fprintf(b.out, "Build finished. image id: %s\n", b.image)
+		fmt.Fprintf(b.out, "Build success.\n Image id:\n%s\n", b.image)
 		return b.image, nil
 	}
 	for i := range b.tmpContainers {