1
0
mirror of https://github.com/containers/buildah.git synced 2025-07-30 04:23:09 +03:00

Display imageId after commit

Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>

Closes: #566
Approved by: rhatdan
This commit is contained in:
TomSweeneyRedHat
2018-04-10 13:07:31 -04:00
committed by Atomic Bot
parent f2c532a958
commit b81af1e212
3 changed files with 10 additions and 2 deletions

View File

@ -117,6 +117,11 @@ func (b *Builder) Commit(dest types.ImageReference, options CommitOptions) error
logrus.Warnf("don't know how to add tags to images stored in %q transport", dest.Transport().Name())
}
}
img, err := is.Transport.GetStoreImage(b.store, dest)
if err == nil {
fmt.Printf("%s\n", img.ID)
}
return nil
}