This message was deleted.
# rancher-desktop
a
This message was deleted.
c
actually, looks like foo:bar works. it's when specify the volume in long form that it doesn't work
s
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... https://docs.rancherdesktop.io/faq/
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,
/home/$USER
on Linux, and
/tmp/rancher-desktop
on both. For Windows, all files are automatically shared via WSL2.
c
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
myservice:
  ..
  volumes:
  - type: bind
    source: foo
    target: bar
with
- 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
311 Views