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

quick-keyboard-83126

11/30/2022, 5:46 PM
Should I be able to use
docker run -v /tmp/foo:/tmp/bar -it busybox
on macOS w/ rancher desktop where
/tmp/foo
is a directory?
h

helpful-butcher-75556

11/30/2022, 5:51 PM
I'm on a Mac M1 and this works fine for me:
docker run -v /Users/myname/temp/:/tmp/myname -it busybox
q

quick-keyboard-83126

11/30/2022, 5:54 PM
Oh, right. I knew that detail. It's fine in
~
but not elsewhere by default. Thanks.
h

helpful-butcher-75556

11/30/2022, 6:00 PM
You're right. I tried mounting /tmp and TMPDIR and no errors, but nothing is there. Many files in TMPDIR have read for everyone.
s

sticky-summer-13450

12/01/2022, 8:45 AM
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.
41 Views