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
1 changed files with 2 additions and 2 deletions

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),