diff --git a/services/checker/checker.go b/services/checker/checker.go index 356c962f..7a02450f 100644 --- a/services/checker/checker.go +++ b/services/checker/checker.go @@ -3,6 +3,7 @@ package checker import ( "kool-dev/kool/core/builder" "kool-dev/kool/core/shell" + "strings" ) // Checker defines the check kool dependencies method @@ -33,7 +34,11 @@ func (c *DefaultChecker) Check() error { } if _, err := c.shell.Exec(c.dockerComposeCmd); err != nil { - return ErrDockerComposeNotFound + if strings.Contains(strings.ToLower(err.Error()), "is not a docker command") { + return ErrDockerComposeNotFound + } + // anything else, raise the original error + return err } if _, err := c.shell.Exec(c.dockerCmd); err != nil {