1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fixed output quirks in 'docker images'

This commit is contained in:
Solomon Hykes 2013-03-21 18:59:12 -07:00
parent ef711962d5
commit 4af8b711c0

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