Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: include docker daemon mention in error #203

Merged
merged 2 commits into from
Feb 3, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/kurtosis/kurtosis.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package kurtosis

import (
"context"
"fmt"
"os/exec"

"github.com/kurtosis-tech/kurtosis/api/golang/core/lib/enclaves"
Expand All @@ -22,7 +23,8 @@ func InitKurtosisContext() (KurtosisCtx, error) {
// Kurtosis engine is probably not running. Try to start it.
// TODO: avoid using the CLI for this
if exec.Command("kurtosis", "engine", "start").Run() != nil {
return KurtosisCtx{}, err
return KurtosisCtx{}, fmt.Errorf("failed to start Kurtosis engine: %w\n"+
"This might be because the docker daemon is not running", err)
}
ctx, err = kurtosis_context.NewKurtosisContextFromLocalEngine()
}
Expand Down