mirror of
https://github.com/containers/podman.git
synced 2025-05-17 15:18:43 +08:00
Specify format to buildah before commit
If user specifies commit --format, we were not setting it before commit, this caused warning messages that made no sense to be printed that made no sense. Fixes: https://github.com/containers/podman/issues/17773 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
@ -68,6 +68,7 @@ func (c *Container) Commit(ctx context.Context, destImage string, options Contai
|
||||
PreferredManifestType: options.PreferredManifestType,
|
||||
}
|
||||
importBuilder, err := buildah.ImportBuilder(ctx, c.runtime.store, builderOptions)
|
||||
importBuilder.Format = options.PreferredManifestType
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Reference in New Issue
Block a user