This message was deleted.
# rancher-desktop
This message was deleted.
actually, looks like foo:bar works. it's when specify the volume in long form that it doesn't work
Are you trying to mount folders which are outside of your $HOME? IIRC, only a small portion of the host filesystem is available to mount in the RD VM. But I might be forgetting, or thinking about Mac and Linux which might be different for Windows.
I nearly remembered correctly...
Q: Does file sharing work similarly to Docker Desktop? Do I have to do any additional configuration to mount volumes to VMs?
A: Currently, the following directories are shared by default: `/Users/$USER` on macOS,
on Linux, and
on both. For Windows, all files are automatically shared via WSL2.
the source file was in a sub directory in $HOME, yes rancher desktop devs should try a volume like this, to see if there's a bug:
Copy code
  - type: bind
    source: foo
    target: bar
- foo:bar
it worked fine
actually, I found out this might not have anything to do with rancher, because I had the same problem in a vm that has no rancher