#Is there a way to get the manifest of a image in dagger

1 messages · Page 1 of 1 (latest)

copper badger
#

I would like to know if there is a way to build a docker image (e.g. with the Build method https://pkg.go.dev/dagger.io/dagger#Container.Build) and then inspect the manifest of that image built (func (r *Container) Manifest(ctx context.Context) (*File, error))

teal bolt
#

I don't think we have that in the core API, but you could probably implement in a module pretty easily, there is Container.asTarball which will give you the entire image as an OCI archive. From there you can extract the manifest

teal bolt
#

Also would you mind opening an issue on the repository? Will be easier to track this way, and it may lead to us adding it to the core API (if others agree it's justified)