Skip to content

Conversation

@1056824847
Copy link

Context

Currently, the Docker detection logic in run.py fails to properly detect Docker Desktop on macOS systems. While Docker Desktop is installed and running, the script reports "No container engine found" because it only checks the default Docker environment and Colima, but doesn't account for macOS-specific Docker Desktop socket paths.

This issue prevents users from running CodeAssist on macOS with Docker Desktop, even when Docker is properly installed and functioning via command line.

Summary of Change

Enhanced the detect_docker function to comprehensively detect Docker on macOS systems by:

Maintained existing logic: First attempts default Docker environment detection

Added macOS-specific path detection: When on macOS (sys.platform == "darwin"), the function now checks multiple common Docker Desktop socket paths:

Standard Docker Desktop path: unix:///var/run/docker.sock

User directory Docker socket: unix://~/.docker/run/docker.sock

Homebrew Docker path: unix:///usr/local/var/run/docker.sock

Preserved Colima support: Existing Colima detection logic remains unchanged

The function now iterates through these potential paths, attempting to establish a Docker connection with each until one succeeds or all options are exhausted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant