Prechádzať zdrojové kódy

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

shin- 12 rokov pred
rodič
commit
0786d9ec22
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      commands.go

+ 2 - 2
commands.go

@@ -554,8 +554,8 @@ func (srv *Server) CmdImages(stdin io.ReadCloser, stdout io.Writer, args ...stri
 		for id, image := range allImages {
 		for id, image := range allImages {
 			if !*quiet {
 			if !*quiet {
 				for idx, field := range []string{
 				for idx, field := range []string{
-					/* REPOSITORY */ "",
-					/* TAG */ "",
+					/* REPOSITORY */ "<none>",
+					/* TAG */ "<none>",
 					/* ID */ id,
 					/* ID */ id,
 					/* CREATED */ HumanDuration(time.Now().Sub(image.Created)) + " ago",
 					/* CREATED */ HumanDuration(time.Now().Sub(image.Created)) + " ago",
 					/* PARENT */ srv.runtime.repositories.ImageName(image.Parent),
 					/* PARENT */ srv.runtime.repositories.ImageName(image.Parent),