mirror of
https://github.com/containers/podman.git
synced 2025-09-25 15:55:32 +08:00
vendor buildah, image, storage, cni
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
This commit is contained in:
10
vendor/github.com/containers/buildah/import.go
generated
vendored
10
vendor/github.com/containers/buildah/import.go
generated
vendored
@ -17,7 +17,11 @@ func importBuilderDataFromImage(ctx context.Context, store storage.Store, system
|
||||
return nil, errors.Errorf("Internal error: imageID is empty in importBuilderDataFromImage")
|
||||
}
|
||||
|
||||
uidmap, gidmap := convertStorageIDMaps(storage.DefaultStoreOptions.UIDMap, storage.DefaultStoreOptions.GIDMap)
|
||||
storeopts, err := storage.DefaultStoreOptions(false, 0)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
uidmap, gidmap := convertStorageIDMaps(storeopts.UIDMap, storeopts.GIDMap)
|
||||
|
||||
ref, err := is.Transport.ParseStoreReference(store, imageID)
|
||||
if err != nil {
|
||||
@ -83,7 +87,7 @@ func importBuilder(ctx context.Context, store storage.Store, options ImportOptio
|
||||
return nil, err
|
||||
}
|
||||
|
||||
systemContext := getSystemContext(&types.SystemContext{}, options.SignaturePolicyPath)
|
||||
systemContext := getSystemContext(store, &types.SystemContext{}, options.SignaturePolicyPath)
|
||||
|
||||
builder, err := importBuilderDataFromImage(ctx, store, systemContext, c.ImageID, options.Container, c.ID)
|
||||
if err != nil {
|
||||
@ -115,7 +119,7 @@ func importBuilderFromImage(ctx context.Context, store storage.Store, options Im
|
||||
return nil, errors.Errorf("image name must be specified")
|
||||
}
|
||||
|
||||
systemContext := getSystemContext(options.SystemContext, options.SignaturePolicyPath)
|
||||
systemContext := getSystemContext(store, options.SystemContext, options.SignaturePolicyPath)
|
||||
|
||||
_, img, err := util.FindImage(store, "", systemContext, options.Image)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user