diff --git a/daemon/daemon.go b/daemon/daemon.go index 2bb2d8c060..c72da06129 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -1235,6 +1235,9 @@ func NewDaemon(ctx context.Context, config *config.Config, pluginStore *plugin.S } if d.imageService == nil { + if d.containerdClient == nil { + return nil, errors.New("containerd snapshotter is enabled but containerd is not configured") + } log.G(ctx).Info("Starting daemon with containerd snapshotter integration enabled") resp, err := d.containerdClient.IntrospectionService().Plugins(ctx, `type=="io.containerd.snapshotter.v1"`)