mirror of
https://github.com/docker/compose.git
synced 2026-08-28 12:23:49 +00:00
Merge pull request #1530 from aiordache/recreate_after_build
This commit is contained in:
commit
cd4a08d0d6
3 changed files with 130 additions and 78 deletions
|
|
@ -99,8 +99,15 @@ func runImages(ctx context.Context, opts imageOptions, services []string) error
|
|||
for _, img := range images {
|
||||
id := stringid.TruncateID(img.ID)
|
||||
size := units.HumanSizeWithPrecision(float64(img.Size), 3)
|
||||
|
||||
_, _ = fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%s\n", img.ContainerName, img.Repository, img.Tag, id, size)
|
||||
repo := img.Repository
|
||||
if repo == "" {
|
||||
repo = "<none>"
|
||||
}
|
||||
tag := img.Tag
|
||||
if tag == "" {
|
||||
tag = "<none>"
|
||||
}
|
||||
_, _ = fmt.Fprintf(w, "%s\t%s\t%s\t%s\t%s\n", img.ContainerName, repo, tag, id, size)
|
||||
}
|
||||
},
|
||||
"Container", "Repository", "Tag", "Image Id", "Size")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue