flaky-engineer-56191
06/05/2023, 10:05 AMflytectl demo start
But I encountered the following error:
Error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
My docker engine is running tho and I can build images if I want to. Anyone has experienced this before?victorious-kilobyte-69570
06/05/2023, 10:24 AMvictorious-kilobyte-69570
06/05/2023, 10:27 AMflaky-engineer-56191
06/05/2023, 10:31 AMagreeable-kitchen-44189
06/05/2023, 10:40 AMdocker run hello-world
?flaky-engineer-56191
06/05/2023, 10:43 AMHello from Docker!
This message shows that your installation appears to be working correctly.
some-grass-84903
06/05/2023, 10:45 AMsudo
by any chance?flaky-engineer-56191
06/05/2023, 10:48 AMsudo
when when executing the docker command.agreeable-kitchen-44189
06/05/2023, 11:13 AMDOCKER_HOST="unix:///var/run/docker.sock" docker run hello-world
?kind-kite-58745
06/05/2023, 11:18 AM/var/run/docker.sock
.
Assuming docker desktop, what version are you using?
I’m using docker desktop 4.12 on MacOS, which symlinks by default the /var/run/docker.sock
path to your actual docker.sock, for example mine looks like this:
cictor@Victors-MacBook-Pro % ls -la /var/run/docker.sock
lrwxr-xr-x 1 root daemon 37 May 29 12:51 /var/run/docker.sock -> /Users/cictor/.docker/run/docker.sock
Version 4.13.0 of docker desktop does not create this symlink anymore:
https://docs.docker.com/desktop/release-notes/
• By default Docker will not create the /var/run/docker.sock symlink on the host and use the docker-desktop CLI context instead.Version 4.13.1 added it back:
• Added back thesymlink on Mac by default, to increase compatibility with tooling like/var/run/docker.sock
andtilt
. Fixes docker/for-mac#6529.docker-py
So if you’re using exactly version 4.13.0, that would be a problem. Please check
flaky-engineer-56191
06/05/2023, 12:42 PM