Check remote snapshot availability only for stargz
Signed-off-by: ktock <ktokunaga.mail@gmail.com>v0.8
parent
0caddb1c72
commit
0bd43aa1dc
|
@ -399,8 +399,10 @@ func (sr *immutableRef) Extract(ctx context.Context, s session.Group) (rerr erro
|
|||
ctx = winlayers.UseWindowsLayerMode(ctx)
|
||||
}
|
||||
|
||||
if _, err := sr.prepareRemoteSnapshots(ctx, sr.descHandlers); err != nil {
|
||||
return err
|
||||
if sr.cm.Snapshotter.Name() == "stargz" {
|
||||
if _, err := sr.prepareRemoteSnapshots(ctx, sr.descHandlers); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return sr.extract(ctx, sr.descHandlers, s)
|
||||
|
|
Loading…
Reference in New Issue