https://rancher.com/ logo
#rancher-desktop
Title
# rancher-desktop
s

stale-balloon-14828

10/11/2022, 9:18 PM
Hi I am migrating from Docker Desktop to Rancher Desktop on Mac and am running into issues with bind mounting certain directories (e.g. /tmp or /srv). It appears to succeed for /Users for example. In Docker Desktop there was a file share settings that needed to be modified to allow for exporting other paths besides the defaults for macOS. Is there a similar configuration available for Rancher Desktop? If not, is there documentation anywhere on what directories can be bind mounted?
s

stale-balloon-14828

10/11/2022, 10:38 PM
Thanks, I'm assuming there's no way to expand that list of default directories via configuration?
q

quick-keyboard-83126

10/11/2022, 10:39 PM
I wouldn't make assumptions 🙂
Personally, I'd just work around it on my device w/ some symlinks from /opt /tmp /srv to ~/... unless I really needed to invest time learning the details. But, I'm old and have been using symlinks to paper over problems for decades.
f

fast-garage-66093

10/11/2022, 11:26 PM
Adding the symlinks won't work because they don't resolve inside the VM; you have to bind-mount the target of the symlink as well. You can do this from an
override.yaml
file:
Copy code
$ cat ~/Library/Application\ Support/rancher-desktop/lima/_config/override.yaml
mounts:
- location: /Volumes/ThunderBlade
  writable: true
q

quick-keyboard-83126

10/11/2022, 11:26 PM
What I imagine is on the host mapping
/tmp/foo
to ~/foo and in the container map
/tmp/foo
to the same.
f

fast-garage-66093

10/11/2022, 11:26 PM
Note that a "Factory Reset" will also delete your "override.yaml" file
q

quick-keyboard-83126

10/11/2022, 11:27 PM
Factory Reset should really dump the "trashed" settings into a folder, e.g. on the desktop "discarded rancher desktop settings (n)"
f

fast-garage-66093

10/11/2022, 11:28 PM
Oh, ok, I thought you were creating
~/opt -> /opt
, and that will not work 🙂
q

quick-keyboard-83126

10/11/2022, 11:28 PM
I should have been more precise 🙂
Although technically I think my text was correct 🙂
f

fast-garage-66093

10/11/2022, 11:30 PM
Yes, your text was correct; I was just making the wrong assumptions because I have various symlinks from my home directory to an external RAID device, which is why I need the extra mount (out of space on the internal drive):
Copy code
$ ls -l ~/suse
lrwxr-xr-x  1 jan  staff  26  7 Feb  2020 /Users/jan/suse -> /Volumes/ThunderBlade/suse
q

quick-keyboard-83126

10/11/2022, 11:30 PM
Been there had that problem 🙂
This is a fairly new M1 max(?):
Copy code
Filesystem     Size   Used  Avail Capacity  iused      ifree %iused  Mounted on
/dev/disk3s5  926Gi  731Gi  162Gi    82% 14728848 1703615800    1%   /System/Volumes/Data
(Will have that problem soon enough...)
f

fast-garage-66093

10/11/2022, 11:32 PM
Should have ordered that 4TB internal SSD...
q

quick-keyboard-83126

10/11/2022, 11:32 PM
I asked for it, the finance guy vetoed
(seriously)
s

stale-balloon-14828

10/12/2022, 1:02 PM
@fast-garage-66093 thanks -- that worked!
36 Views