question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

0.7.0.beta.1 docker socket not available after sleep/wake

See original GitHub issue

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 image

Steps to Reproduce

select dockerd image

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?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:16 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
janduboiscommented, Jan 8, 2022

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.

2reactions
gaktivecommented, Jan 15, 2022

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

mac rancher desktop cannot connect to the docker daemon
Similar to using Docker Desktop with its built-in Kubernetes support, no local registry or ... 0.7.0.beta.1 docker socket not available after sleep/wake, ...
Read more >
Ask HN: What do you want to see in Ubuntu 17.10?
My laptop has a 4k screen, and when I plug it in, I have it set to ... they support scaling on OS...
Read more >
mozilla-release: changeset 548750 ...
Backed out 2 changesets (bug 1569090) for causing debug SM build fail with error: failed to load source for a dependency on `mio-named-pipes`....
Read more >
Xcs - ALBA.Net
Jupgrade 2.5.1 free download, The participants of world war 2, Novini kazanlak ... App store on apple tv not working, Miley cyrus i...
Read more >
openSUSE 10.2 Beta 1 Changelog - Tux Machines
Load audio profiles from BANSHEE_PROFILES_PATH env if set ... call pm-utils first, then try powersave if not available
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found