Use the right driver

Fixes #2254
This commit is contained in:
Owen
2026-01-17 12:21:18 -08:00
parent fb19e10cdc
commit 610b20c1ff
3 changed files with 53 additions and 3 deletions

View File

@@ -229,7 +229,16 @@ func main() {
}
}
config.InstallationContainerType = podmanOrDocker(reader)
// Try to detect container type from existing installation
detectedType := detectContainerType()
if detectedType == Undefined {
// If detection fails, prompt the user
fmt.Println("Unable to detect container type from existing installation.")
config.InstallationContainerType = podmanOrDocker(reader)
} else {
config.InstallationContainerType = detectedType
fmt.Printf("Detected container type: %s\n", config.InstallationContainerType)
}
config.DoCrowdsecInstall = true
err := installCrowdsec(config)