Compatibility with colima
akshayamaldhure opened this issue · comments
@akshayamaldhure I found a work around .
- Find out your local unix socket via :
docker context ls
.You need docker endpoint something likeunix:///Users/youruser/.colima/docker.sock
- Point
DOCKER_HOST
variable before invoking lazydocker :
DOCKER_HOST=unix:///Users/youruser/.colima/docker.sock lazydocker
- Profit ?
That works. Thanks a lot!
This can be done automatically with
export DOCKER_HOST=$(docker context inspect | jq '.[] | select(.Name == "'$(docker context show)'") | .Endpoints.docker.Host' -r)
set -gx DOCKER_HOST (docker context inspect | jq '.[] | select(.Name == "'(docker context show)'") | .Endpoints.docker.Host' -r)