mirror of
https://github.com/containers/podman.git
synced 2025-08-02 01:09:21 +08:00
Copy the content from the underlying image into the newly created volume.
Fixes: #10262 Signed-off-by: Vikas Goel <vikas.goel@gmail.com>
This commit is contained in:
@ -153,7 +153,15 @@ func MakeContainer(ctx context.Context, rt *libpod.Runtime, s *specgen.SpecGener
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return rt.NewContainer(ctx, runtimeSpec, options...)
|
||||
|
||||
ctr, err := rt.NewContainer(ctx, runtimeSpec, options...)
|
||||
if err != nil {
|
||||
return ctr, err
|
||||
}
|
||||
|
||||
// Copy the content from the underlying image into the newly created
|
||||
// volume if configured to do so.
|
||||
return ctr, rt.PrepareVolumeOnCreateContainer(ctx, ctr)
|
||||
}
|
||||
|
||||
func extractCDIDevices(s *specgen.SpecGenerator) []libpod.CtrCreateOption {
|
||||
|
Reference in New Issue
Block a user