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

Upstream-commit: 0786d9ec22164afe17051e69dd462ebee6ddcbf9
Component: engine
This commit is contained in:
shin-
2013-03-24 15:01:41 -07:00
parent 2f936aecff
commit d85e328966
+2 -2
View File
@@ -554,8 +554,8 @@ func (srv *Server) CmdImages(stdin io.ReadCloser, stdout io.Writer, args ...stri
for id, image := range allImages {
if !*quiet {
for idx, field := range []string{
/* REPOSITORY */ "",
/* TAG */ "",
/* REPOSITORY */ "<none>",
/* TAG */ "<none>",
/* ID */ id,
/* CREATED */ HumanDuration(time.Now().Sub(image.Created)) + " ago",
/* PARENT */ srv.runtime.repositories.ImageName(image.Parent),