From de4af86e9801c72a11483f5854fdec7ab1f2d428 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 25 Aug 2022 18:41:02 +0200 Subject: [PATCH] daemon: set containerd default snapshotter if none is configured This is a temporary workaround for the daemon not yet having automatic selection of snapshotters. Signed-off-by: Sebastiaan van Stijn --- daemon/daemon.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/daemon/daemon.go b/daemon/daemon.go index f0fa951bf6..d3bd2f6f57 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -979,6 +979,11 @@ func NewDaemon(ctx context.Context, config *config.Config, pluginStore *plugin.S } if d.UsesSnapshotter() { + // FIXME(thaJeztah): implement automatic snapshotter-selection similar to graph-driver selection; see https://github.com/moby/moby/issues/44076 + if driverName == "" { + driverName = containerd.DefaultSnapshotter + } + // Configure and validate the kernels security support. Note this is a Linux/FreeBSD // operation only, so it is safe to pass *just* the runtime OS graphdriver. if err := configureKernelSecuritySupport(config, driverName); err != nil {