rancher-desktop icon indicating copy to clipboard operation
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?

Open venkatfromgithub opened this issue 2 years ago • 30 comments

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

venkatfromgithub avatar Jul 13 '22 08:07 venkatfromgithub

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 0 }] }" module=grpc time="2022-07-13T08:11:48.287147900Z" level=info msg="ClientConn switching balancer to "pick_first"" module=grpc time="2022-07-13T08:11:48Z" level=warning msg="deprecated version : 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 0 }] }" module=grpc time="2022-07-13T08:11:48.751806800Z" level=info msg="ClientConn switching balancer to "pick_first"" module=grpc time="2022-07-13T08:11:48.755248200Z" level=info msg="parsed scheme: "unix"" module=grpc time="2022-07-13T08:11:48.755529500Z" level=info msg="scheme "unix" not registered, fallback to default scheme" module=grpc time="2022-07-13T08:11:48.755744700Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock 0 }] }" module=grpc time="2022-07-13T08:11:48.755907400Z" level=info msg="ClientConn switching balancer to "pick_first"" module=grpc time="2022-07-13T08:11:48.898386100Z" level=info msg="[graphdriver] using prior storage driver: overlay2" time="2022-07-13T08:11:49.378452600Z" level=warning msg="Your kernel does not support cgroup blkio weight" time="2022-07-13T08:11:49.378707100Z" level=warning msg="Your kernel does not support cgroup blkio weight_device" time="2022-07-13T08:11:49.378872800Z" level=warning msg="Your kernel does not support cgroup blkio throttle.read_bps_device" time="2022-07-13T08:11:49.379054700Z" level=warning msg="Your kernel does not support cgroup blkio throttle.write_bps_device" time="2022-07-13T08:11:49.379228700Z" level=warning msg="Your kernel does not support cgroup blkio throttle.read_iops_device" time="2022-07-13T08:11:49.379367000Z" level=warning msg="Your kernel does not support cgroup blkio throttle.write_iops_device" time="2022-07-13T08:11:49.380107900Z" level=info msg="Loading containers: start." time="2022-07-13T08:11:52.124463400Z" level=info msg="Removing stale sandbox 78a5d3fbcf9bac0c6dceff37cec873c9a744668f13fb07851b93d3de475ef4dd (6ec81703a732a47e58dd874a77f0a43a32b48cdf25129e88befddfa1c2324da2)" time="2022-07-13T08:11:52.130528100Z" level=warning msg="Error (Unable to complete atomic operation, key modified) deleting object [endpoint 5fc54885e6e98a03febb3b791add5585deeb9c0b9d9cc8c3a8badbbc9584754f 1ea75ecf18c30144376d9a2ef12d0c7e89e5e521d1dfb47e722b4c28e56c0993], retrying...." time="2022-07-13T08:11:52.211737200Z" level=info msg="Removing stale sandbox 80a89bc0f39629acc659bf032527c46163a615fcd2b1ce5186d4fdd35f4b9fe6 (bfaeb4772d7c0e19d2d6d2b97fb34fa820f3fdd1d63f3bd5c0dac60da95df92e)" time="2022-07-13T08:11:52.224005100Z" level=warning msg="Error (Unable to complete atomic operation, key modified) deleting object [endpoint 5fc54885e6e98a03febb3b791add5585deeb9c0b9d9cc8c3a8badbbc9584754f e62f17ce4b9396ee445c210cc2a88d8d6c5587224cb7427f69049c234a9a6480], retrying...." time="2022-07-13T08:11:52.314084400Z" level=info msg="Removing stale sandbox f986a134a2df4b3d07319f0800da2a1a14f500cc2cb26d63fa21fb034b4b51a6 (d8a1d0260cbc6ff0acf79ee0aadc4b1d1f520dc3396c5712f59472824fbb9f61)" time="2022-07-13T08:11:52.318069500Z" level=warning msg="Error (Unable to complete atomic operation, key modified) deleting object [endpoint 5fc54885e6e98a03febb3b791add5585deeb9c0b9d9cc8c3a8badbbc9584754f d6175abc31756943c1b58eb96dd868569d470732af3f6619c49cb20b27f93eca], retrying...." time="2022-07-13T08:11:52.422481700Z" level=info msg="Removing stale sandbox 033e6f46a13a118dc9fd61c14bc17068ff7d39a4b98a190599bc292e868376e9 (b6b9aeb8876283cbe175e39f5dee6fbf2a5d3af913bfe81a6a6fc281cb2cc781)" time="2022-07-13T08:11:52.433778600Z" level=warning msg="Error (Unable to complete atomic operation, key modified) deleting object [endpoint 5fc54885e6e98a03febb3b791add5585deeb9c0b9d9cc8c3a8badbbc9584754f cbbc2c67a22908c516f1f56f244cb98a25b6b7179d43d0df2dabc4109d0e078d], retrying...." time="2022-07-13T08:11:52.522386500Z" level=info msg="Removing stale sandbox 070ce336bda82a348d11f713929d8817b65dfd241b65077e49e9355a8a1a1579 (db53b2746d4448faca03a2e7b0fa4516dbbf4658a8d111b0cdf0f3cc0943743b)" time="2022-07-13T08:11:52.526341400Z" level=warning msg="Error (Unable to complete atomic operation, key modified) deleting object [endpoint 5fc54885e6e98a03febb3b791add5585deeb9c0b9d9cc8c3a8badbbc9584754f 14c9e5d053e28bb4a79f4c7bd3d35eb15d5dd44edb8db12a867e6b8133f1056f], retrying...." time="2022-07-13T08:11:53.009201700Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address" time="2022-07-13T08:11:53.600026300Z" level=info msg="Loading containers: done." time="2022-07-13T08:11:53.695054300Z" level=info msg="Docker daemon" commit=f756502055d2e36a84f2068e6620bea5ecf09058 graphdriver(s)=overlay2 version=20.10.16 time="2022-07-13T08:11:53.695691500Z" level=info msg="Daemon has completed initialization" time="2022-07-13T08:11:54.066525500Z" level=info msg="API listen on /mnt/wsl/rancher-desktop/run/docker.sock" time="2022-07-13T08:11:54.070483500Z" level=info msg="API listen on /var/run/docker.sock" time="2022-07-13T08:12:07.992497700Z" level=error msg="Failed to compute size of container rootfs df0f0c6b50d6c96295a7e299076a2a4ed8df0ce12f0ce12e74ddd5c187a250cc: mount does not exist" time="2022-07-13T08:12:12.609277200Z" level=info msg="loading plugin "io.containerd.event.v1.publisher"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1 time="2022-07-13T08:12:12.609331400Z" level=info msg="loading plugin "io.containerd.internal.v1.shutdown"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1 time="2022-07-13T08:12:12.609343000Z" level=info msg="loading plugin "io.containerd.ttrpc.v1.task"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1 time="2022-07-13T08:12:12.609744400Z" level=info msg="starting signal loop" namespace=moby path=/run/docker/containerd/daemon/io.containerd.runtime.v2.task/moby/7a0ae6a000940de5a98c1c968d7d1eba146b56526d2e7013197c233788bafdcb pid=1521 runtime=io.containerd.runc.v2 time="2022-07-13T08:12:12.609550700Z" level=info msg="loading plugin "io.containerd.event.v1.publisher"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1 time="2022-07-13T08:12:12.609577900Z" level=info msg="loading plugin "io.containerd.internal.v1.shutdown"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1 time="2022-07-13T08:12:12.609586100Z" level=info msg="loading plugin "io.containerd.ttrpc.v1.task"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1 time="2022-07-13T08:12:12.609847900Z" level=info msg="starting signal loop" namespace=moby path=/run/docker/containerd/daemon/io.containerd.runtime.v2.task/moby/b1cfcdba287950f2120f7ef78e07bda7f07dc341a528c79bc382def908d89d88 pid=1523 runtime=io.containerd.runc.v2 time="2022-07-13T08:12:12.675062400Z" level=info msg="loading plugin "io.containerd.event.v1.publisher"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1 time="2022-07-13T08:12:12.675098100Z" level=info msg="loading plugin "io.containerd.internal.v1.shutdown"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1 time="2022-07-13T08:12:12.675107800Z" level=info msg="loading plugin "io.containerd.ttrpc.v1.task"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1 time="2022-07-13T08:12:12.675222300Z" level=info msg="starting signal loop" namespace=moby path=/run/docker/containerd/daemon/io.containerd.runtime.v2.task/moby/b5ceb05438e6888923813caeea7953b1921ab5146a879083d7eeec266b8ef1c0 pid=1569 runtime=io.containerd.runc.v2 time="2022-07-13T08:12:13.071124900Z" level=info msg="loading plugin "io.containerd.event.v1.publisher"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1 time="2022-07-13T08:12:13.071210400Z" level=info msg="loading plugin "io.containerd.internal.v1.shutdown"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1 time="2022-07-13T08:12:13.071229200Z" level=info msg="loading plugin "io.containerd.ttrpc.v1.task"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1 time="2022-07-13T08:12:13.071547200Z" level=info msg="starting signal loop" namespace=moby path=/run/docker/containerd/daemon/io.containerd.runtime.v2.task/moby/bcec7a1590620ecba6a8d59e74df19a685a053b96d5e8c610d2d44c1d8dbf5d1 pid=1767 runtime=io.containerd.runc.v2 time="2022-07-13T08:12:13.088408600Z" level=info msg="loading plugin "io.containerd.event.v1.publisher"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1 time="2022-07-13T08:12:13.088485400Z" level=info msg="loading plugin "io.containerd.internal.v1.shutdown"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1 time="2022-07-13T08:12:13.088498000Z" level=info msg="loading plugin "io.containerd.ttrpc.v1.task"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1 time="2022-07-13T08:12:13.088736600Z" level=info msg="starting signal loop" namespace=moby path=/run/docker/containerd/daemon/io.containerd.runtime.v2.task/moby/c18c4f997b047bed02f0630299a887c5aed0e7523e977b4b4a27e4a2c40a5cfd pid=1758 runtime=io.containerd.runc.v2 time="2022-07-13T08:12:13.583533200Z" level=info msg="loading plugin "io.containerd.event.v1.publisher"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1 time="2022-07-13T08:12:13.583623600Z" level=info msg="loading plugin "io.containerd.internal.v1.shutdown"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1 time="2022-07-13T08:12:13.583640700Z" level=info msg="loading plugin "io.containerd.ttrpc.v1.task"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1 time="2022-07-13T08:12:13.583839900Z" level=info msg="starting signal loop" namespace=moby path=/run/docker/containerd/daemon/io.containerd.runtime.v2.task/moby/9e44f5fbbc2e72c9492a368c0b771e4677cb52506f58fb798b8df645e9e5eae2 pid=2015 runtime=io.containerd.runc.v2 time="2022-07-13T08:12:13.662959100Z" level=info msg="loading plugin "io.containerd.event.v1.publisher"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1 time="2022-07-13T08:12:13.663011400Z" level=info msg="loading plugin "io.containerd.internal.v1.shutdown"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1 time="2022-07-13T08:12:13.663028200Z" level=info msg="loading plugin "io.containerd.ttrpc.v1.task"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1 time="2022-07-13T08:12:13.663181600Z" level=info msg="starting signal loop" namespace=moby path=/run/docker/containerd/daemon/io.containerd.runtime.v2.task/moby/40372d7631acdeb4c4d6de701df493555a91b7e0dae75caf854925825b906aa5 pid=2065 runtime=io.containerd.runc.v2 time="2022-07-13T08:12:13.990201700Z" level=info msg="loading plugin "io.containerd.event.v1.publisher"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1 time="2022-07-13T08:12:13.990254700Z" level=info msg="loading plugin "io.containerd.internal.v1.shutdown"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1 time="2022-07-13T08:12:13.990266900Z" level=info msg="loading plugin "io.containerd.ttrpc.v1.task"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1 time="2022-07-13T08:12:13.990559700Z" level=info msg="starting signal loop" namespace=moby path=/run/docker/containerd/daemon/io.containerd.runtime.v2.task/moby/6929fb3f879d4d5ecb4ddff0ee5a6b759454beccb3e0133bea2430a8a947f64e pid=2203 runtime=io.containerd.runc.v2 time="2022-07-13T08:12:14.080488500Z" level=info msg="loading plugin "io.containerd.event.v1.publisher"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1 time="2022-07-13T08:12:14.080588200Z" level=info msg="loading plugin "io.containerd.internal.v1.shutdown"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1 time="2022-07-13T08:12:14.080603600Z" level=info msg="loading plugin "io.containerd.ttrpc.v1.task"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1 time="2022-07-13T08:12:14.080803600Z" level=info msg="starting signal loop" namespace=moby path=/run/docker/containerd/daemon/io.containerd.runtime.v2.task/moby/63d2fdd0082c30fd5ddf61ffdc70b054137ac4cb92f0f0371d2db023ba497923 pid=2241 runtime=io.containerd.runc.v2 time="2022-07-13T08:12:14.379622100Z" level=info msg="loading plugin "io.containerd.event.v1.publisher"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1 time="2022-07-13T08:12:14.379660800Z" level=info msg="loading plugin "io.containerd.internal.v1.shutdown"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1 time="2022-07-13T08:12:14.379672300Z" level=info msg="loading plugin "io.containerd.ttrpc.v1.task"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1 time="2022-07-13T08:12:14.380216200Z" level=info msg="starting signal loop" namespace=moby path=/run/docker/containerd/daemon/io.containerd.runtime.v2.task/moby/ac06cc007de2ac6f91b101e400ee0cbd2963b4befe131d1db426039b1ace345c pid=2351 runtime=io.containerd.runc.v2 time="2022-07-13T08:12:14.637400800Z" level=info msg="loading plugin "io.containerd.event.v1.publisher"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1 time="2022-07-13T08:12:14.637462300Z" level=info msg="loading plugin "io.containerd.internal.v1.shutdown"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1 time="2022-07-13T08:12:14.637476100Z" level=info msg="loading plugin "io.containerd.ttrpc.v1.task"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1 time="2022-07-13T08:12:14.637701900Z" level=info msg="starting signal loop" namespace=moby path=/run/docker/containerd/daemon/io.containerd.runtime.v2.task/moby/50cfce5afec5f68189c66dd755d894ffc00179e254e11be50487b7482cad51aa pid=2434 runtime=io.containerd.runc.v2 time="2022-07-13T08:12:44.424406300Z" level=info msg="ignoring event" container=40372d7631acdeb4c4d6de701df493555a91b7e0dae75caf854925825b906aa5 module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete" time="2022-07-13T08:12:44.426200500Z" level=info msg="shim disconnected" id=40372d7631acdeb4c4d6de701df493555a91b7e0dae75caf854925825b906aa5 time="2022-07-13T08:12:44.426706200Z" level=warning msg="cleaning up after shim disconnected" id=40372d7631acdeb4c4d6de701df493555a91b7e0dae75caf854925825b906aa5 namespace=moby time="2022-07-13T08:12:44.426993000Z" level=info msg="cleaning up dead shim" time="2022-07-13T08:12:44.435036400Z" level=warning msg="cleanup warnings time="2022-07-13T08:12:44Z" level=info msg="starting signal loop" namespace=moby pid=3393 runtime=io.containerd.runc.v2\n" time="2022-07-13T08:12:57.456372600Z" level=info msg="loading plugin "io.containerd.event.v1.publisher"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1 time="2022-07-13T08:12:57.456455900Z" level=info msg="loading plugin "io.containerd.internal.v1.shutdown"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1 time="2022-07-13T08:12:57.456468100Z" level=info msg="loading plugin "io.containerd.ttrpc.v1.task"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1 time="2022-07-13T08:12:57.456674000Z" level=info msg="starting signal loop" namespace=moby path=/run/docker/containerd/daemon/io.containerd.runtime.v2.task/moby/d53402e91c227b071328cbca4501813f87acc2a0d5da1e64ef8b6df95968ccf7 pid=3668 runtime=io.containerd.runc.v2

venkatfromgithub avatar Jul 13 '22 08:07 venkatfromgithub

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?

jandubois avatar Jul 13 '22 16:07 jandubois

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? image

venkatfromgithub avatar Jul 18 '22 03:07 venkatfromgithub

I get the same error, but in a Virtual Machine with Ubuntu 22.04.

bruno-lopes avatar Jul 28 '22 18:07 bruno-lopes

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.

ABVitali avatar Aug 20 '22 10:08 ABVitali

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 avatar Aug 30 '22 22:08 jandubois

@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.

bruno-lopes avatar Aug 30 '22 23:08 bruno-lopes

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 avatar Aug 31 '22 00:08 jandubois

@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.

RD_Issues

venkatfromgithub avatar Sep 22 '22 05:09 venkatfromgithub

I'm facing the same issue on Mac

nrworld4 avatar Oct 21 '22 14:10 nrworld4

Me too

mkubasz avatar Oct 26 '22 20:10 mkubasz

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

cmhdave avatar Oct 28 '22 12:10 cmhdave

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

JulianCabreraS avatar Oct 28 '22 17:10 JulianCabreraS

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).

alemata2006 avatar Oct 30 '22 00:10 alemata2006

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

sanxete091 avatar Nov 06 '22 16:11 sanxete091

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)

alemata2006 avatar Nov 07 '22 03:11 alemata2006

Is there any update?

I'm facing this issue on my mac(M1, 2021)

loustler avatar Nov 08 '22 08:11 loustler

Changing the Container Engine to dockerd in the preferences made it work for me. (M1 Pro 12.6)

FelipeCO14 avatar Nov 09 '22 05:11 FelipeCO14

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?

namanrawal47 avatar Dec 19 '22 03:12 namanrawal47

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.

mdailous avatar Jan 19 '23 15:01 mdailous

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!

abecode avatar Feb 01 '23 17:02 abecode

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

boundedinfinity avatar Mar 27 '23 14:03 boundedinfinity

use "nerdctl" and no more "docker" app

DavidRobertKeller avatar Apr 15 '23 20:04 DavidRobertKeller

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.

tankhiwale avatar Jun 19 '23 04:06 tankhiwale

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.

bestickley avatar Jun 20 '23 16:06 bestickley

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)

jamesmanes avatar Jul 11 '23 20:07 jamesmanes

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.

image

antoineco avatar Oct 14 '23 10:10 antoineco

Well, dunno if this issue is still valid for others but in my case this action was successful: Screenshot 2023-11-03 at 16 17 58

So it allows to create /var/run/docker.sock by rancher.

nurislam-kalenov avatar Nov 03 '23 14:11 nurislam-kalenov

As @nurislam-kalenov said, enabling Administrative Access should solve this:

rancher-admin-setting

hdodov avatar Jan 25 '24 10:01 hdodov

Well, dunno if this issue is still valid for others but in my case this action was successful: Screenshot 2023-11-03 at 16 17 58

So it allows to create /var/run/docker.sock by rancher.

This was it for me on my Mac

shah-vtx avatar Mar 21 '24 17:03 shah-vtx