rancher-desktop: 0.7.0.beta.1 docker socket not available after sleep/wake
Rancher Desktop Version
0.7.0.beta.1
Rancher Desktop K8s Version
1.18.20
What operating system are you using?
macOS
Operating System / Build Version
macos Monteray 12.0.1
What CPU architecture are you using?
x64
Windows User Only
No response
Actual Behavior
configure with directions works, but after sleep and wake the service doesn’t restart in the VM
docker context rm -f rancher-desktop
docker context create rancher-desktop --docker host=unix://${HOME}/Library/Application\ Support/rancher-desktop/lima/0/sock/docker --description "Rancher Desktop"
docker context list; docker context use rancher-desktop
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
253183341cda cf14c5e88c0e "buildkitd --addr=un…" 31 seconds ago Up 29 seconds k8s_buildkit_builder-g99h4_kube-image_dcd7937f-25cb-4570-96c6-183c356d1d1b_1223
3c21c08d55a8 913759b56a73 "/app" 3 minutes ago Up 3 minutes k8s_app_app-5fc4ff6c45-hpzff_api_5a1659cc-330a-4a2b-b5e6-82fe972fb222_2
but after sleep wake docker service is not available, even with repeating the above steps
docker ps
Cannot connect to the Docker daemon at unix:///...home.../Library/Application Support/rancher-desktop/lima/0/sock/docker. Is the docker daemon running?
after restarting rancher-desktop it works again

Steps to Reproduce
select dockerd

configure docker socket export
docker context rm -f rancher-desktop
docker context create rancher-desktop --docker host=unix://${HOME}/Library/Application\ Support/rancher-desktop/lima/0/sock/docker --description "Rancher Desktop"
docker context list; docker context use rancher-desktop
Result
docker ps and other commands work until sleep and wake of mac after wake unable to connect to docker daemon
docker ps
Cannot connect to the Docker daemon at unix:///...home.../Library/Application Support/rancher-desktop/lima/0/sock/docker. Is the docker daemon running?
Expected Behavior
after wake daemon should be reachable via socket
Additional Information
not sure how to jump into this vm to debug further
are there directions for accessing this vm via lima/limactl?
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 4
- Comments: 16 (5 by maintainers)
I’ve reviewed and tested https://github.com/lima-vm/lima/pull/490 today, and confirmed that it will reset the clock inside the VM within 10s after waking up from sleep.
I do not know if this will fix the docker socket issue. I hope the lima fix will be merged early next week and make it into Rancher Desktop in time for the 1.0.0-beta release expected around January 17 (Monday in a week). We would very much appreciate if you could retest the issue once the beta is released.
Version 1.0.0 beta1 was released today and has a change in Lima that syncs the clock between the host and the guest.
Please test the same scenario with this version and if the problem still exists, please reopen this.
I’m running version 1.0.0 beta1 and looks like the date problem was solved. However, it still happens every time the host OS gets in sleep mode for more than one~ hour.
I connected to the Lima VM via ssh, and the docker engine still running, but inaccessible from outside.
Which information can I get that would help to identify the issue properly? Should I open another issue?
Host OS: macOS Monterey 12.1 Chip: Apple M1 Rancher desktop: 1.0.0-beta.1