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:
committed by
Atomic Bot
parent
f2c532a958
commit
b81af1e212
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user