Browse code

Show <none> instead of an empty string in docker images listing for images with no repository or tag

shin- authored on 2013/03/25 07:01:41
Showing 1 changed files
... ...
@@ -554,8 +554,8 @@ func (srv *Server) CmdImages(stdin io.ReadCloser, stdout io.Writer, args ...stri
554 554
 		for id, image := range allImages {
555 555
 			if !*quiet {
556 556
 				for idx, field := range []string{
557
-					/* REPOSITORY */ "",
558
-					/* TAG */ "",
557
+					/* REPOSITORY */ "<none>",
558
+					/* TAG */ "<none>",
559 559
 					/* ID */ id,
560 560
 					/* CREATED */ HumanDuration(time.Now().Sub(image.Created)) + " ago",
561 561
 					/* PARENT */ srv.runtime.repositories.ImageName(image.Parent),