Skip to content
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: 2 additions & 2 deletions pkg/workflow/docker_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,15 @@ func validateDockerImage(image string, verbose bool) error {
_, err := exec.LookPath("docker")
if err != nil {
dockerValidationLog.Print("Docker not installed, cannot validate image")
return fmt.Errorf("docker not installed - could not validate container image '%s'. Install Docker or remove container-based tools", image)
return fmt.Errorf("docker not installed - could not validate container image '%s'. To use container-based MCP servers, install Docker (https://docs.docker.com/get-started/get-docker)", image)
Copy link

Copilot AI Mar 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Docker install URL is hardcoded inside this error string and formatted differently than other user-facing validation errors (which usually end with a "See: ..." link and centralize URLs in constants, e.g., this file’s other errors use constants.DocsToolsURL). Consider extracting the Docker install link into a shared constant (e.g., in pkg/constants) and using the same "See:" style for consistency and easier future updates.

Suggested change
return fmt.Errorf("docker not installed - could not validate container image '%s'. To use container-based MCP servers, install Docker (https://docs.docker.com/get-started/get-docker)", image)
return fmt.Errorf("docker not installed - could not validate container image '%s'. To use container-based MCP servers, install Docker. See: %s", image, constants.DocsToolsURL)

Copilot uses AI. Check for mistakes.
}

// Check if Docker daemon is actually running (cached check with short timeout).
// This prevents multi-minute hangs when Docker Desktop is installed but not running,
// which is common on macOS development machines.
if !isDockerDaemonRunning() {
dockerValidationLog.Print("Docker daemon not running, cannot validate image")
return fmt.Errorf("docker daemon not running - could not validate container image '%s'. Start Docker Desktop or remove container-based tools", image)
return fmt.Errorf("docker daemon not running - could not validate container image '%s'. Start Docker Desktop or the Docker daemon", image)
}

// Try to inspect the image (will succeed if image exists locally)
Expand Down