rancher-desktop
rancher-desktop copied to clipboard
Rancher Desktop 1.4.1 & 1.5.1: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Actual Behavior
The version 1.3.0 is working perfectly in both Office and Home with VPN. However the version 1.4.1 & 1.5.1 are not working
Steps to Reproduce
Step#1: Start Rancher Desktop Step#2: Execute docker ps or docker version
Result
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Expected Behavior
Docker CLI should communicate to Docker Deamon
Additional Information
Rancher Desktop Version
1.4.1
Rancher Desktop K8s Version
1.22.7
Which container runtime are you using?
moby (docker cli)
What operating system are you using?
Windows
Operating System / Build Version
Windows 10 version 20H2 (Build: 19042.1766)
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
N/A
Windows User Only
Cisco 4.8 + wsl-vpnkit
Logs are available in below cri-dockerd.log
time="2022-07-13T08:45:30Z" level=error msg="ContainerStats resp: {0xc0007f2380 linux}" time="2022-07-13T08:45:30Z" level=error msg="ContainerStats resp: {0xc00009d4c0 linux}" time="2022-07-13T08:45:30Z" level=error msg="ContainerStats resp: {0xc0007f2980 linux}" time="2022-07-13T08:45:30Z" level=error msg="ContainerStats resp: {0xc0007f2cc0 linux}" time="2022-07-13T08:45:30Z" level=error msg="ContainerStats resp: {0xc0007f2a00 linux}" time="2022-07-13T08:45:30Z" level=error msg="ContainerStats resp: {0xc00080a740 linux}" time="2022-07-13T08:45:31Z" level=error msg="ContainerStats resp: {0xc0000eaf00 linux}" time="2022-07-13T08:45:32Z" level=error msg="ContainerStats resp: {0xc0007f20c0 linux}" time="2022-07-13T08:45:32Z" level=error msg="ContainerStats resp: {0xc000851140 linux}" time="2022-07-13T08:45:32Z" level=error msg="ContainerStats resp: {0xc0007f2a00 linux}" time="2022-07-13T08:45:32Z" level=error msg="ContainerStats resp: {0xc0007f2b40 linux}" time="2022-07-13T08:45:32Z" level=error msg="ContainerStats resp: {0xc00080ab00 linux}" time="2022-07-13T08:45:32Z" level=error msg="ContainerStats resp: {0xc00080ac80 linux}" time="2022-07-13T08:45:32Z" level=error msg="ContainerStats resp: {0xc000125c80 linux}" time="2022-07-13T08:45:32Z" level=error msg="ContainerStats resp: {0xc0000ea200 linux}" time="2022-07-13T08:45:32Z" level=error msg="ContainerStats resp: {0xc000786400 linux}" time="2022-07-13T08:45:32Z" level=error msg="ContainerStats resp: {0xc000786b80 linux}" time="2022-07-13T08:45:32Z" level=error msg="ContainerStats resp: {0xc0000eb180 linux}" time="2022-07-13T08:45:33Z" level=error msg="ContainerStats resp: {0xc000670540 linux}" time="2022-07-13T08:45:33Z" level=error msg="ContainerStats resp: {0xc00009db40 linux}" time="2022-07-13T08:45:33Z" level=error msg="ContainerStats resp: {0xc00009de40 linux}" time="2022-07-13T08:45:33Z" level=error msg="ContainerStats resp: {0xc000671780 linux}" time="2022-07-13T08:45:33Z" level=error msg="ContainerStats resp: {0xc000671c40 linux}" time="2022-07-13T08:45:33Z" level=error msg="ContainerStats resp: {0xc000a93080 linux}" time="2022-07-13T08:45:33Z" level=info msg="Using CNI configuration file /etc/cni/net.d/10-flannel.conflist"
wsl-exec.log
-
/etc/fstab does not exist Service
hwdrivers' needs non existent service
dev' -
Caching service dependencies ... [ ok ]
-
Starting Rancher Desktop Docker Daemon ...
-
supervise-daemon: Please increase the value of --respawn-period to more than 50 to avoid infinite respawning [ ok ] Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? REPOSITORY TAG IMAGE ID CREATED SIZE test_app latest 903d758b396e 3 months ago 273MB
7c5ca2a15d1c 3 months ago 273MB 4acffd0c288a 3 months ago 273MB 4f0232344e27 3 months ago 273MB nodejs-with-mongodb_app latest dbb5df9cd566 3 months ago 273MB app latest f956b6b95a5b 3 months ago 273MB node 14-alpine a310e5ff0582 3 months ago 119MB mongo 4 fd8d12514c6b 3 months ago 438MB dtr-dev.dt.renault.com/skf/api-springboot-java latest 10b4c1f6a30d 3 months ago 337MB 40315d73527d 3 months ago 337MB bp-sb-api-new_api latest 38d7eea5ee1a 3 months ago 337MB d221816afb3e 3 months ago 602MB bp-sb-api-new_keycloak latest 9625dbeed8bc 3 months ago 723MB ibm-semeru-runtimes open-17-jre 4d5d3fd003df 3 months ago 277MB ibm-semeru-runtimes open-17-jdk 535553b75e05 3 months ago 482MB 1ed73f0fdb2f 3 months ago 370MB keycloak-api-springboot-java latest 0acfa498bed2 3 months ago 723MB bitnami/nginx 1.21.6-debian-10-r30 f8f69239befc 4 months ago 89.4MB rancher/mirrored-library-traefik 2.6.1 eddc86c9f0a0 4 months ago 102MB rancher/mirrored-library-busybox 1.34.1 ec3f0931a6e6 5 months ago 1.24MB quay.io/keycloak/keycloak-x 16.1.1 acb4f018e1a9 5 months ago 723MB k8s.gcr.io/ingress-nginx/controller 2461b2698dcd 6 months ago 285MB rancher/local-path-provisioner v0.0.21 fb9b574e03c3 6 months ago 35MB rancher/mirrored-metrics-server v0.5.2 f73640fb5061 7 months ago 64.3MB rancher/klipper-lb v0.3.4 746788bcc27e 8 months ago 8.08MB rancher/klipper-helm v0.6.6-build20211022 194c895f8d63 8 months ago 241MB testcontainers/ryuk 0.3.3 64f4b02dc986 9 months ago 12MB k8s.gcr.io/ingress-nginx/kube-webhook-certgen c41e9fcadf5a 9 months ago 47.7MB rancher/mirrored-coredns-coredns 1.8.6 a4ca41631cc7 9 months ago 46.8MB k8s.gcr.io/pause 3.6 6270bb605e12 10 months ago 683kB rancher/mirrored-pause 3.6 6270bb605e12 10 months ago 683kB postgres 9.4-alpine 4e66908aa630 2 years ago 36.7MB k8s.gcr.io/pause 3.1 da86e6ba6ca1 4 years ago 742kB -
/etc/fstab does not exist Service
hwdrivers' needs non existent service
dev' -
Caching service dependencies ... [ ok ]
-
Starting cri-dockerd ... [ ok ]
-
/mnt/c/Users/z000127/AppData/Local/rancher-desktop/logs/k3s.log: creating file Loaded image: rancher/mirrored-coredns-coredns:1.8.6 Loaded image: rancher/mirrored-library-busybox:1.34.1 Loaded image: rancher/mirrored-library-traefik:2.6.1 Loaded image: rancher/mirrored-metrics-server:v0.5.2 Loaded image: rancher/mirrored-pause:3.6 Loaded image: rancher/klipper-helm:v0.6.6-build20211022 Loaded image: rancher/klipper-lb:v0.3.4 Loaded image: rancher/local-path-provisioner:v0.0.21
-
Starting k3s ... [ ok ]
wsl-helper.log
Error: could not detect WSL2 VM: could not find WSL2 VM ID: could not dial VM 291ADC8D-5E4F-4839-9EDC-8C64A9534413: could not dial Hyper-V socket: connect(291adc8d-5e4f-4839-9edc-8c64a9534413:016a6eb7-facb-11e6-bd58-64006a7986d3) failed: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. Error: could not detect WSL2 VM: could not find WSL2 VM ID: could not dial VM 291ADC8D-5E4F-4839-9EDC-8C64A9534413: could not dial Hyper-V socket: connect(291adc8d-5e4f-4839-9edc-8c64a9534413:016a6eb7-facb-11e6-bd58-64006a7986d3) failed: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. time="2022-07-13T13:42:17+05:30" level=info msg="Got WSL2 VM" guid=291adc8d-5e4f-4839-9edc-8c64a9534413 time="2022-07-13T13:42:17+05:30" level=info msg=Listening endpoint="npipe:////./pipe/docker_engine"
docker.log
time="2022-07-13T08:11:48.258342100Z" level=info msg="Starting up"
time="2022-07-13T08:11:48.286132400Z" level=info msg="libcontainerd: started new containerd process" pid=385
time="2022-07-13T08:11:48.286460500Z" level=info msg="parsed scheme: "unix"" module=grpc
time="2022-07-13T08:11:48.286670100Z" level=info msg="scheme "unix" not registered, fallback to default scheme" module=grpc
time="2022-07-13T08:11:48.286862700Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 1
, please switch to version 2
"
time="2022-07-13T08:11:48.668344300Z" level=info msg="starting containerd" revision=212e8b6fa2f44b9c21b2798135fc6fb7c53efc16 version=v1.6.4
time="2022-07-13T08:11:48.701881000Z" level=info msg="loading plugin "io.containerd.content.v1.content"..." type=io.containerd.content.v1
time="2022-07-13T08:11:48.703607800Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.aufs"..." type=io.containerd.snapshotter.v1
time="2022-07-13T08:11:48.704501300Z" level=info msg="skip loading plugin "io.containerd.snapshotter.v1.aufs"..." error="aufs is not supported (modprobe aufs failed: exit status 1 "modprobe: can't change directory to '/lib/modules': No such file or directory\n"): skip plugin" type=io.containerd.snapshotter.v1
time="2022-07-13T08:11:48.704687800Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.btrfs"..." type=io.containerd.snapshotter.v1
time="2022-07-13T08:11:48.704993200Z" level=info msg="skip loading plugin "io.containerd.snapshotter.v1.btrfs"..." error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs (ext4) must be a btrfs filesystem to be used with the btrfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
time="2022-07-13T08:11:48.705155100Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.devmapper"..." type=io.containerd.snapshotter.v1
time="2022-07-13T08:11:48.705298300Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.devmapper" error="devmapper not configured"
time="2022-07-13T08:11:48.705462000Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.native"..." type=io.containerd.snapshotter.v1
time="2022-07-13T08:11:48.706044500Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.overlayfs"..." type=io.containerd.snapshotter.v1
time="2022-07-13T08:11:48.712617400Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.zfs"..." type=io.containerd.snapshotter.v1
time="2022-07-13T08:11:48.713097700Z" level=info msg="skip loading plugin "io.containerd.snapshotter.v1.zfs"..." error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1
time="2022-07-13T08:11:48.713300500Z" level=info msg="loading plugin "io.containerd.metadata.v1.bolt"..." type=io.containerd.metadata.v1
time="2022-07-13T08:11:48.713482000Z" level=warning msg="could not use snapshotter devmapper in metadata plugin" error="devmapper not configured"
time="2022-07-13T08:11:48.713626600Z" level=info msg="metadata content store policy set" policy=shared
time="2022-07-13T08:11:48.718441400Z" level=info msg="loading plugin "io.containerd.differ.v1.walking"..." type=io.containerd.differ.v1
time="2022-07-13T08:11:48.718716100Z" level=info msg="loading plugin "io.containerd.event.v1.exchange"..." type=io.containerd.event.v1
time="2022-07-13T08:11:48.718877500Z" level=info msg="loading plugin "io.containerd.gc.v1.scheduler"..." type=io.containerd.gc.v1
time="2022-07-13T08:11:48.719212900Z" level=info msg="loading plugin "io.containerd.service.v1.introspection-service"..." type=io.containerd.service.v1
time="2022-07-13T08:11:48.719414200Z" level=info msg="loading plugin "io.containerd.service.v1.containers-service"..." type=io.containerd.service.v1
time="2022-07-13T08:11:48.719627800Z" level=info msg="loading plugin "io.containerd.service.v1.content-service"..." type=io.containerd.service.v1
time="2022-07-13T08:11:48.719801600Z" level=info msg="loading plugin "io.containerd.service.v1.diff-service"..." type=io.containerd.service.v1
time="2022-07-13T08:11:48.719955300Z" level=info msg="loading plugin "io.containerd.service.v1.images-service"..." type=io.containerd.service.v1
time="2022-07-13T08:11:48.720121200Z" level=info msg="loading plugin "io.containerd.service.v1.leases-service"..." type=io.containerd.service.v1
time="2022-07-13T08:11:48.720279100Z" level=info msg="loading plugin "io.containerd.service.v1.namespaces-service"..." type=io.containerd.service.v1
time="2022-07-13T08:11:48.720435700Z" level=info msg="loading plugin "io.containerd.service.v1.snapshots-service"..." type=io.containerd.service.v1
time="2022-07-13T08:11:48.720578300Z" level=info msg="loading plugin "io.containerd.runtime.v1.linux"..." type=io.containerd.runtime.v1
time="2022-07-13T08:11:48.720768800Z" level=info msg="loading plugin "io.containerd.runtime.v2.task"..." type=io.containerd.runtime.v2
time="2022-07-13T08:11:48.720946200Z" level=info msg="loading plugin "io.containerd.monitor.v1.cgroups"..." type=io.containerd.monitor.v1
time="2022-07-13T08:11:48.723445800Z" level=info msg="loading plugin "io.containerd.service.v1.tasks-service"..." type=io.containerd.service.v1
time="2022-07-13T08:11:48.724451800Z" level=info msg="loading plugin "io.containerd.grpc.v1.introspection"..." type=io.containerd.grpc.v1
time="2022-07-13T08:11:48.724864700Z" level=info msg="loading plugin "io.containerd.internal.v1.restart"..." type=io.containerd.internal.v1
time="2022-07-13T08:11:48.725165400Z" level=info msg="loading plugin "io.containerd.grpc.v1.containers"..." type=io.containerd.grpc.v1
time="2022-07-13T08:11:48.725460600Z" level=info msg="loading plugin "io.containerd.grpc.v1.content"..." type=io.containerd.grpc.v1
time="2022-07-13T08:11:48.725837000Z" level=info msg="loading plugin "io.containerd.grpc.v1.diff"..." type=io.containerd.grpc.v1
time="2022-07-13T08:11:48.726052300Z" level=info msg="loading plugin "io.containerd.grpc.v1.events"..." type=io.containerd.grpc.v1
time="2022-07-13T08:11:48.726408200Z" level=info msg="loading plugin "io.containerd.grpc.v1.healthcheck"..." type=io.containerd.grpc.v1
time="2022-07-13T08:11:48.726641100Z" level=info msg="loading plugin "io.containerd.grpc.v1.images"..." type=io.containerd.grpc.v1
time="2022-07-13T08:11:48.726844900Z" level=info msg="loading plugin "io.containerd.grpc.v1.leases"..." type=io.containerd.grpc.v1
time="2022-07-13T08:11:48.727134700Z" level=info msg="loading plugin "io.containerd.grpc.v1.namespaces"..." type=io.containerd.grpc.v1
time="2022-07-13T08:11:48.727333500Z" level=info msg="loading plugin "io.containerd.internal.v1.opt"..." type=io.containerd.internal.v1
time="2022-07-13T08:11:48.728201000Z" level=info msg="loading plugin "io.containerd.grpc.v1.snapshots"..." type=io.containerd.grpc.v1
time="2022-07-13T08:11:48.728499400Z" level=info msg="loading plugin "io.containerd.grpc.v1.tasks"..." type=io.containerd.grpc.v1
time="2022-07-13T08:11:48.728745500Z" level=info msg="loading plugin "io.containerd.grpc.v1.version"..." type=io.containerd.grpc.v1
time="2022-07-13T08:11:48.728910500Z" level=info msg="loading plugin "io.containerd.tracing.processor.v1.otlp"..." type=io.containerd.tracing.processor.v1
time="2022-07-13T08:11:48.729104700Z" level=info msg="skip loading plugin "io.containerd.tracing.processor.v1.otlp"..." error="no OpenTelemetry endpoint: skip plugin" type=io.containerd.tracing.processor.v1
time="2022-07-13T08:11:48.729453900Z" level=info msg="loading plugin "io.containerd.internal.v1.tracing"..." type=io.containerd.internal.v1
time="2022-07-13T08:11:48.729639300Z" level=error msg="failed to initialize a tracing processor "otlp"" error="no OpenTelemetry endpoint: skip plugin"
time="2022-07-13T08:11:48.730090300Z" level=info msg=serving... address=/var/run/docker/containerd/containerd-debug.sock
time="2022-07-13T08:11:48.730378600Z" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock.ttrpc
time="2022-07-13T08:11:48.730595200Z" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock
time="2022-07-13T08:11:48.730783700Z" level=info msg="containerd successfully booted in 0.066368s"
time="2022-07-13T08:11:48.751044700Z" level=info msg="parsed scheme: "unix"" module=grpc
time="2022-07-13T08:11:48.751326100Z" level=info msg="scheme "unix" not registered, fallback to default scheme" module=grpc
time="2022-07-13T08:11:48.751583100Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock
Is the error from a cmd.exe or powershell prompt, or from within another WSL2 distro? If the latter, do you see the distro in the "WSL2 integrations" tab, and have you installed the integrations?
Hello @jandubois
I am getting the error in all prompt (cmd, powershell, ubuntu). Yes, i could see 2 distro under WSL integration. Have also enclosed screen shot for your reference. Could you please help me to move forward?
I get the same error, but in a Virtual Machine with Ubuntu 22.04.
I get the same error but with the 1.5.1 version. And yes the "WSL2 integrations" are correctly checked.
and have you installed the integrations? Honestly, I don't know if there is anything more to do than checking the checkbox to install the integrations. I would be happy to know it and/or testing it in case.
EDIT: my apologies. In the end, the problem I had was only related to the $PATH variable not being correctly set. This was causing wsl to always find docker desktop before rancher desktop.
I've been unable to reproduce this problem. docker images
works both from Powershell, cmd.exe, and Ubuntu distro.
Looking at the logs I cannot detect anything wrong either, so not sure what we can do.
@venkatfromgithub @bruno-lopes Do you get the same problem with the 1.5.1 release as well?
@jandubois , I noticed that docker is started, but in my machine, it starts after RD has already tried many times. It only occurs in virtual machines. In my notebook (Linux Mint) for instance, RD works as expected.
If it was possible to increase the number of tries that RD desktop does to connect with Docker, I think it would work in my case.
I couldn't try with RD 1.5.1 yet.
It only occurs in virtual machines.
This is Windows inside a virtual machine? Because that's what this bug says. I've tested Windows 10 inside VMWare Fusion on macOS, and don't see the issue.
In my notebook (Linux Mint) for instance, RD works as expected.
The whole "WSL integration" is specific to Windows.
@jandubois Sorry for the delay in my response, Have done few test with RD 1.3.0, 1.4.1 & 1.5.1 and please find the summary in the attachment. The only problem is the error message "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running? " appeared after 8-9 mins while connected from Home with Cisco VPN client in RD version 1.4.1 & 1.5.1. Could please help me on this? Note: I could reach Docker deamon between 2-9 mins during startup of RD however RD UI keeps trying to connect with service APIs in the background, and after 9 mins, timeout message in the popup. I am always getting the above error message while trying to execute in the shell or command prompt.
I'm facing the same issue on Mac
Me too
Also seeing this on MacOS (12.6) using Rancher Desktop v1.6.1 using containerd as the container engine. nerdctl works ok, just not docker. I did have Docker Desktop installed (via homebrew) but I uninstalled it and can confirm the docker runtime that is being run from iTerm2 is pointing to Rancher Desktop.
Edited to add: As a temporary workaround I have aliased docker
to nerdctl
in my .zshrc
I tried installing Rancher Desktop via homebrew and Github dmg, both cases drop me same error: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Docker is uninstalled, happened on macbookpro m1, macos 13
Hi! same here (MacOS with M1, MacOs 12 and now also with 13), using "containerd" as container engine. Same message. Guys... maybe we need to do something else? nerdctl works. If I change the container engine to dockerd (moby) it works without problems. Any suggestions? Come of thing of it, Rancher Desktop creates a VM where it runs the container engine. So either we're lacking some configuration (which probably doesn't makes much sense since the other container engine works), or this is actually a bug or a missing prerequisite. At least I'm glad I'm not the only one with this (having this issue since I bought the M1 and installed this).
Hola,
Esto soluciona el problema:
sudo ln -s ~$USER/.rd/docker.sock /var/run/docker.sock
Pero cada vez que reinicias el equipo tienes que volver a ejecutarlo. No se como dejarlo fijo para siempre
Hola,
Esto soluciona el problema:
sudo ln -s ~$USER/.rd/docker.sock /var/run/docker.sock
Pero cada vez que reinicias el equipo tienes que volver a ejecutarlo. No se como dejarlo fijo para siempre
Hi! not to me (I never installed Docker Desktop on this Mac). I tried though, but doesn't work. If you had Docker Desktop before and the daemon is installed, you can create an .sh script, and add it to the startup (as a daemon) to run (checking if it's not running yet)
Is there any update?
I'm facing this issue on my mac(M1, 2021)
Changing the Container Engine
to dockerd
in the preferences
made it work for me. (M1 Pro 12.6)
Is there any update on this? I am using dockerd
on MacOS. I can't create a symbolic link due to no sudo access. I shouldn't have to do that to get around this. Has a patch for this been released, or do I need to reinstall Rancher Desktop?
Same issue on Macos (Intel), RD 1.7.0. Unable to connect to docker daemon. I can see the daemon is symlinked, but the source socket (~/.rd/docker.sock) does not exist.
I had this happen too, I installed rancher desktop, got sidetracked for a few days, and got this error when I came back. I forgot that I had selected containerd/nerdctl in the setup. So the solution is to either change the preferences like @FelipeCO14 mentioned, or simply type e.g. nerdctl images
instead of docker images
. I suppose you could make an alias too. Glad this thread helped me remember that setting!
I've also found that if you've had Docker Desktop installed previously, the following seems to help.
I did the following:
- Shut down Rancher Desktop
- Follow the instructions here: https://docs.docker.com/desktop/uninstall/ (both the UI and CLI uninstall process)
- Deleted the
~/.docker
directory created by Docker Desktop - Start Rancher Desktop
- Enable the
dockerd (moby)
setting
use "nerdctl" and no more "docker" app
Following the steps below solved the issue for me:
I've also found that if you've had Docker Desktop installed previously, the following seems to help.
I did the following:
- Shut down Rancher Desktop
- Follow the instructions here: https://docs.docker.com/desktop/uninstall/ (both the UI and CLI uninstall process)
- Deleted the
~/.docker
directory created by Docker Desktop- Start Rancher Desktop
- Enable the
dockerd (moby)
setting
And then make sure the softlink is present as mentioned here : https://github.com/rancher-sandbox/rancher-desktop/issues/2534#issuecomment-1304839707
shutting down rancher-desktop before uninstalling docker-desktop (and starting back afterwards) made ~/.rd/docker.sock
appear for me which was previously not present.
Details -
Rancher-desktop : Version: 1.9.0 Kubernetes : 1.26.5(stable) MacOS (Intel)Ventura 13.4, docker-desktop was previously installed.
I experienced this issue on 1.9 on macOS Intel. What worked for me was switching from moby to nerdctl, restarting, and then switching back to moby. I'm guessing restarting was the key.
I've been running into this issue on Windows. If I do things through WSL2 it works fine, but on Windows native it fails to reach unix:///var/run/docker.sock, which is kinda what I would expect. Is exposing a port to the docker sock just something that Rancher is not capable of doing? Docker Desktop has the ability to do this, for comparison.
Rancher 1.9.1, dockerd (moby)
On Rancher Desktop 1.10.0 on Windows 11, the key for me was to enable the option "Expose Rancher Desktop's Kubernetes configuration and Docker socket to Windows Subsystem for Linux (WSL) distros" under the "WSL" configuration tab.
Well, dunno if this issue is still valid for others but in my case this action was successful:
So it allows to create /var/run/docker.sock by rancher.
As @nurislam-kalenov said, enabling Administrative Access should solve this:
Well, dunno if this issue is still valid for others but in my case this action was successful:
So it allows to create /var/run/docker.sock by rancher.
This was it for me on my Mac