mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
daemon: Fix forceful switch to containerd image store
When no explicit driver was specified, the containerd store by default was also applied to existing graphdriver setups. Fix this and add a test. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
@@ -861,6 +861,11 @@ func NewDaemon(ctx context.Context, config *config.Config, pluginStore *plugin.S
|
||||
|
||||
migrationThreshold := int64(-1)
|
||||
isGraphDriver := func(driver string) (bool, error) {
|
||||
if driver == "" {
|
||||
if graphdriver.HasPriorDriver(config.Root) {
|
||||
return true, nil
|
||||
}
|
||||
}
|
||||
return graphdriver.IsRegistered(driver), nil
|
||||
}
|
||||
if enabled, ok := config.Features["containerd-snapshotter"]; (ok && !enabled) || os.Getenv("TEST_INTEGRATION_USE_GRAPHDRIVER") != "" {
|
||||
|
||||
Reference in New Issue
Block a user