mirror of
https://github.com/clearlinux/docker.git
synced 2026-11-20 21:12:44 +00:00
Fixed output quirks in 'docker images'
This commit is contained in:
+2
-1
@@ -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