Symlink to .colima/docker.sock from /var/run/docker.sock #139
Replies: 4 comments 6 replies
-
Initially, colima symlinks to the default docker socket path. This changed in v0.3.0 to ensure co-existence with other docker servers as well as supporting multiple instances. You can always switch the docker context or set the |
Beta Was this translation helpful? Give feedback.
-
Hey, had the same issue yesterday with testcontainers-go. Exporting docker host worked for me. |
Beta Was this translation helpful? Give feedback.
-
I understand the reasoning for wanting to work alongside other docker servers, but this essentially breaks the moby client as there isn't a method in the client to use the docker sock specified in the current context. That's all part of the docker CLI. So any projects that use the moby client instead of the docker CLI won't work out of the box unless you have an environment variable set which most people don't set because normally we're sure the docker sock is at |
Beta Was this translation helpful? Give feedback.
-
And I'm not sure why yet, but even if I have the moby client explicitly connect to |
Beta Was this translation helpful? Give feedback.
-
A lot of applications connect to docker via /var/run/docker.sock see testcontainers jenkins might as well
It would be cool if the brew/apt install or startup could create a symlink to .colima/docker.sock from /var/run/docker.sock so that colima could be compatible with these applications.
I already did this manually my self and it works using the following commands after installing colima
cd ~
colima start
cd /var/run
sudo ln -s ~/.colima/docker.sock docker.sock
cd ~
Beta Was this translation helpful? Give feedback.
All reactions