DockStation / dockstation

DockStation is developer-centric application to managing projects based on Docker. Instead of lots of CLI commands you can monitor, configure, and manage services and containers using just a GUI.
https://dockstation.io/
2.13k stars 106 forks source link

Dockstation not working with colima #322

Open I-Abdelhamid opened 1 year ago

I-Abdelhamid commented 1 year ago

I have Colima installed with the docker client on my mac but stating dockstation gives the error failed to attach docker event listener error connect ENOENT /var/run/docker.sock I tried chmod 666 /var/run/docker.sock but gives me chmod: Unable to change file mode on /var/run/docker.sock: No such file or directory

Docker is running using docker ps and docker images

pwagland commented 1 year ago

So the issue appears to be that DockStation is ignoring the docker context.

I-Abdelhamid commented 1 year ago

So the issue appears to be that DockStation is ignoring the docker context.

any solutions around it ?

nickcodefresh commented 1 year ago

Option 3 from https://github.com/abiosoft/colima/blob/main/docs/FAQ.md#changing-the-active-docker-context worked for me. Ignore the error above Docker Compose not being installed.

I was getting the rror

Failed to fetch container logs: 
Command failed: docker logs 97bfba5e4c14d915863254c3eb8ce2cf653a30e3333ae494e13803f29c60c27d --tail=500 2>&1

[stdout]: /bin/sh: docker: command not found

but this fixed that issue sudo ln -s /opt/homebrew/bin/docker /usr/local/bin/docker

SVMadhavaReddy commented 8 months ago

I found a solution by running this simple command. Try your luck! sudo ln -s $HOME/.colima/docker.sock /var/run/docker.sock