Fixed output quirks in 'docker images'
Upstream-commit: 4af8b711c0b86b38a851ec19b2a00e1317496924 Component: engine
This commit is contained in:
@@ -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"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user