rancher-desktop icon indicating copy to clipboard operation
rancher-desktop copied to clipboard

Document using the overrides with lima

Open mattfarina opened this issue 3 years ago • 6 comments

Preflight Checklist

  • [X] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem Description

People are asking about changing some lima settings. We have had to tell people how to using the lima overrides to route around issues.

Proposed Solution

Document the overrides along with a notice of caution about how this can create issues with future releases of RD and lima.

Additional Information

No response

mattfarina avatar Jan 26 '22 21:01 mattfarina

cc @jandubois

jtravee avatar Feb 23 '22 20:02 jtravee

It seems that placing an override.yaml in ~/Library/Application Support/rancher-desktop/lima/_config doesn't work as the directory gets wiped/reset by Rancher.

scalp42 avatar Mar 18 '22 00:03 scalp42

the directory gets wiped/reset by Rancher.

This should only happen during a Factory Reset, which indeed wipes everything (except the update cache, which is a bug).

jandubois avatar Mar 18 '22 00:03 jandubois

Gotcha, I tried creating an override.yaml in ~/Library/Application Support/rancher-desktop/lima/_config with:

ssh:
  loadDotSSHPubKeys: true
  forwardAgent: true

Then tried to restart the Lima VM:

LIMA_HOME="$HOME/Library/Application Support/rancher-desktop/lima" "/Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl" stop 0

LIMA_HOME="$HOME/Library/Application Support/rancher-desktop/lima" "/Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/lima/bin/limactl" start 0

But then any Docker command fails:

$> docker ps
error during connect: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json": EOF

$> ls -l /var/run/docker.sock
lrwxr-xr-x 75 root daemon 16 Mar 23:14 /var/run/docker.sock -> /Users/scalp/Library/Application Support/rancher-desktop/lima/0/sock/docker=

Not too sure

Related: https://github.com/rancher-sandbox/rancher-desktop/discussions/1842

scalp42 avatar Mar 18 '22 01:03 scalp42

Then tried to restart the Lima VM:

You should not manually restart the VM; you should stop Rancher Desktop, and then start it again.

I'm not sure if this the cause of your issue with the docker socket, but it is the first thing I would try: let RD restart the VM itself.

jandubois avatar Mar 18 '22 01:03 jandubois

Indeed, doing by hand is not recommended (needed to restart Docker daemon). Thanks for the quick help. I'll move to the discussion above regarding ssh-agent issues.

scalp42 avatar Mar 18 '22 01:03 scalp42