marcosnils / bin

Effortless binary manager
MIT License
640 stars 44 forks source link

bin install docker:// does not work except with /var/run/docker.sock #188

Open halostatue opened 4 months ago

halostatue commented 4 months ago

I'm on macOS and use Colima as my docker provider. I have set docker context to use the colima context. Many existing tools don't understand how to work with docker contexts, so I have a script that will set $DOCKER_HOST to the socket used by the context.

Even with this set, I get an error with bin install docker://safewaters/docker-lock.

$ echo $DOCKER_HOST
unix:///Users/halostatue/.colima/default/docker.sock
$ bin install docker://safewaters/docker-lock
   • Pulling docker image safewaters/docker-lock:latest
   ⨯ command failed            error=Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?