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

Merge pull request #154 from dotcloud/153-commitnorepo

Clearer information when listing images
This commit is contained in:
Sam Alba 2013-03-25 12:04:57 -07:00
commit 222c04a7e7

View file

@ -559,8 +559,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 */ "", /* REPOSITORY */ "<none>",
/* TAG */ "", /* 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),