Skip to content

[BUG] install.sh choose a wrong docker.sock on macos machine which uses colima managed docker #552

@chanjarster

Description

@chanjarster

Bug Description

try to install hiclaw by script:

bash <(curl -sSL https://higress.ai/hiclaw/install.sh)

error happened:

docker: Error response from daemon: error while creating mount source path '/Users/chanjarster/.colima/default/docker.sock': mkdir /Users/qianjia/.colima/default/docker.sock: operation not supported

Steps to Reproduce

  1. bash <(curl -sSL https://higress.ai/hiclaw/install.sh)
  2. answer steps' questions
  3. error happened

AI Analysis

No response

Relevant Logs

I think install.sh choose a wrong docker.sock, which should be /var/run/docker.sock

docker context ls
NAME       DESCRIPTION                               DOCKER ENDPOINT                                     ERROR
colima *   colima                                    unix:///Users/chanjarster/.colima/default/docker.sock
default    Current DOCKER_HOST based configuration   unix:///var/run/docker.sock

after some dig on the script, I found that may be CONTAINER_SOCK can resolve the problem, but unfortunately, script won't respect this env var.

curl -O https://higress.ai/hiclaw/install.sh && chmod +x install.sh
CONTAINER_SOCK=/var/run/docker.sock ./install.sh

Component

Install / Setup

Version / Commit

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions