Fixed output quirks in 'docker images'

Upstream-commit: 4af8b711c0b86b38a851ec19b2a00e1317496924
Component: engine
This commit is contained in:
Solomon Hykes
2013-03-21 18:59:12 -07:00
parent ace2db29d7
commit b6ad9d08f9
+2 -1
View File
@@ -454,7 +454,7 @@ func (srv *Server) CmdImages(stdin io.ReadCloser, stdout io.Writer, args ...stri
}
}
// Display images which aren't part of a
if nameFilter != "" {
if nameFilter == "" {
for id, image := range allImages {
if !*quiet {
for idx, field := range []string{
@@ -470,6 +470,7 @@ func (srv *Server) CmdImages(stdin io.ReadCloser, stdout io.Writer, args ...stri
w.Write([]byte("\t" + field))
}
}
w.Write([]byte{'\n'})
} else {
stdout.Write([]byte(image.Id + "\n"))
}