rancher-desktop: After Install, Context not set and unable to connect to docker daemon
Actual Behavior
One of my co-workers (on Windows 10) has an issue after installing Rancher Dekstop. They are using version 1.8.1.
Context is set to default instead of set to rancher-desktop and even after manually creating a context for rancher-desktop, they are unable to use docker CLI because the docker daemon cannot be reached.
They updated the Container Engine to dockerd, so that’s not an issue.
I’m at the limit of my docker knowledge, so I don’t know what this could be.
Steps to Reproduce
They installed 1.8.1 this week and then updated Container Engine to dockerd. Tried to run a docker command like docker images and it says the docker daemon cannot be reached.
This is on Windows. Nothing else was done.
Result
This is from the user that’s on Windows:
Note, Context is set to default and the error in the Server section.

The User is seeing this issue immediately after installing Rancher Desktop:
docker imageserror during connect: this error may indicate that the docker daemon is not running: Get “http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/json”: open //./pipe/docker_engine: The system cannot find the file specified.
docker infoClient: Context: default Debug Mode: false Plugins: buildx: Docker Buildx (Docker Inc.) Version: v0.10.4 Path: C:\Users\happer.docker\cli-plugins\docker-buildx.exe compose: Docker Compose (Docker Inc.) Version: v2.16.0 Path: C:\Users\happer.docker\cli-plugins\docker-compose.exeServer: Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 0 Server Version: 20.10.21 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: true userxattr: false Logging Driver: json-file Cgroup Driver: cgroupfs Cgroup Version: 2 Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog Swarm: inactive Runtimes: runc io.containerd.runc.v2 io.containerd.runtime.v1.linux Default Runtime: runc Init Binary: docker-init containerd version: 2456e983eb9e37e47538f59ea18f2043c9a73640 runc version: 5fd4c4d144137e991c4acebb2146ab1483a97925 init version: Security Options: seccomp Profile: default cgroupns Kernel Version: 5.15.90.1-microsoft-standard-WSL2 Operating System: Rancher Desktop WSL Distribution OSType: linux Architecture: x86_64 CPUs: 8 Total Memory: 7.631GiB Name: DESKTOP-A0F18HK ID: UDYI:W2BN:4K63:UBFA:DUR5:6HMM:DDCJ:BGKE:5GJ5:HUS3:MYLH:LRJL Docker Root Dir: /var/lib/docker Debug Mode: false Registry: https://index.docker.io/v1/ Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false
WARNING: No swap limit support
Expected Behavior
When I installed Rancher Desktop back in Oct/Nov, the Context was set to rancher-desktop and everything worked out of the box. This is their first time installing RD and I don’t know if some changes impacted it.
Additional Information
No response
Rancher Desktop Version
1.8.1
Rancher Desktop K8s Version
N/A, Kubernetes is not enabled.
Which container engine are you using?
moby (docker cli)
What operating system are you using?
Other (specify below)
Operating System / Build Version
Windows 10
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
None
Windows User Only
We are using AppGate to VPN into our dev tools (GitLab/Jira). This VPN does not block traffic for us.
ZScalar is also used as a firewall. I have AppGate and ZScalar on my MacOS and I did not have the same issue as this co-worker who works from home. My MacOS ZScalar settings are definitely different from his.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (3 by maintainers)
You most likely had Docker Desktop installed previously and you docker context is set to it.
Run a “docker context inspect” and delete your old folder (storage/metadataPath) that should be c:\Users\xxxx\.docker\
Run “docker context inspect” again and your host should end with “docker_engine” instead of “dockerDesktopLinuxEngine”.
Restart Rancher and everything should run fine.