|
|
@ -60,6 +60,7 @@ func (d *Driver) Client(ctx context.Context) (*client.Client, error) {
|
|
|
|
|
|
|
|
|
|
|
|
func (d *Driver) Features() map[driver.Feature]bool {
|
|
|
|
func (d *Driver) Features() map[driver.Feature]bool {
|
|
|
|
var useContainerdSnapshotter bool
|
|
|
|
var useContainerdSnapshotter bool
|
|
|
|
|
|
|
|
var historyAPI bool
|
|
|
|
ctx := context.Background()
|
|
|
|
ctx := context.Background()
|
|
|
|
c, err := d.Client(ctx)
|
|
|
|
c, err := d.Client(ctx)
|
|
|
|
if err == nil {
|
|
|
|
if err == nil {
|
|
|
@ -69,6 +70,7 @@ func (d *Driver) Features() map[driver.Feature]bool {
|
|
|
|
useContainerdSnapshotter = true
|
|
|
|
useContainerdSnapshotter = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
historyAPI = driver.HistoryAPISupported(ctx, c)
|
|
|
|
c.Close()
|
|
|
|
c.Close()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return map[driver.Feature]bool{
|
|
|
|
return map[driver.Feature]bool{
|
|
|
@ -76,6 +78,7 @@ func (d *Driver) Features() map[driver.Feature]bool {
|
|
|
|
driver.DockerExporter: useContainerdSnapshotter,
|
|
|
|
driver.DockerExporter: useContainerdSnapshotter,
|
|
|
|
driver.CacheExport: useContainerdSnapshotter,
|
|
|
|
driver.CacheExport: useContainerdSnapshotter,
|
|
|
|
driver.MultiPlatform: useContainerdSnapshotter,
|
|
|
|
driver.MultiPlatform: useContainerdSnapshotter,
|
|
|
|
|
|
|
|
driver.HistoryAPI: historyAPI,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|