enough-smartphone-71732
06/11/2025, 2:13 PMwide-mechanic-33041
06/11/2025, 2:26 PMenough-smartphone-71732
06/11/2025, 2:27 PMCurrently, Rancher Desktop allows creating bind mounts only on the following directories by default:It says "automatically shared via WSL2" but that's not terribly helpful when talking about traditional Windows.on macOS,/Users/$USER
on Linux, and/home/$USER
on both. For Windows, all files are automatically shared via WSL2./tmp/rancher-desktop
wide-mechanic-33041
06/11/2025, 2:29 PMenough-smartphone-71732
06/11/2025, 2:30 PMwide-mechanic-33041
06/11/2025, 2:31 PMenough-smartphone-71732
06/11/2025, 2:32 PMwide-mechanic-33041
06/11/2025, 2:32 PMenough-smartphone-71732
06/11/2025, 2:34 PMwide-mechanic-33041
06/11/2025, 2:35 PMenough-smartphone-71732
06/11/2025, 2:36 PMenough-smartphone-71732
06/11/2025, 2:38 PM- .:/mnt/ddev_config:ro
enough-smartphone-71732
06/11/2025, 2:39 PMcompose config
transforms that to:
- bind:
create_host_path: true
read_only: true
source: /c/Users/randy/workspace/d11/.ddev
target: /mnt/ddev_config
type: bind
wide-mechanic-33041
06/11/2025, 2:42 PMwide-mechanic-33041
06/11/2025, 2:42 PMrdctl shell
and look in the container hostenough-smartphone-71732
06/11/2025, 2:43 PMenough-smartphone-71732
06/11/2025, 2:44 PMwide-mechanic-33041
06/11/2025, 2:44 PMwide-mechanic-33041
06/11/2025, 2:50 PMwide-mechanic-33041
06/11/2025, 4:08 PMdocker container run --rm -it -v .:/test alpine:latest cat /test/test.txt
command. so maybe the compose is munging things up with the relative pathenough-smartphone-71732
06/11/2025, 4:17 PMdocker-compose config
on the file before using it, so it ends up being as shown above, https://rancher-users.slack.com/archives/C0200L1N1MM/p1749652791575849?thread_ts=1749651227.298549&cid=C0200L1N1MMwide-mechanic-33041
06/11/2025, 5:04 PMenough-smartphone-71732
06/11/2025, 5:05 PMwide-mechanic-33041
06/11/2025, 5:07 PMwide-mechanic-33041
06/11/2025, 5:07 PMenough-smartphone-71732
06/11/2025, 5:08 PMproud-jewelry-46860
06/11/2025, 5:16 PMC:\Users\randy\workspace\d11\.ddev
), but /c/Users/β¦
smells like a *nix-style path and I don't think we handle that (roughly around https://github.com/rancher-sandbox/rancher-desktop/blob/f10bcec04e9ced15111cb67606[β¦]2e3/src/go/wsl-helper/pkg/dockerproxy/platform/serve_windows.go ). I'm not ruling out classifying that as a bug on our side, though? πfast-garage-66093
06/12/2025, 8:18 PM/c/users/suse
style does not:
C:\Users\SUSE>echo "Hello world" >hello.txt
C:\Users\SUSE>docker run -it --rm -v .:/host alpine cat /host/hello.txt
"Hello world"
C:\Users\SUSE>docker run -it --rm -v c:/users/suse:/host alpine cat /host/hello.txt
"Hello world"
C:\Users\SUSE>docker run -it --rm -v /c/users/suse:/host alpine cat /host/hello.txt
cat: can't open '/host/hello.txt': No such file or directory
enough-smartphone-71732
06/12/2025, 8:23 PMdocker-compose config
, and works with Docker Desktop, etc.fast-garage-66093
06/12/2025, 8:24 PMdocker run -v
. But those examples may have been ancient, when it was docker-toolbox running with VirtualBoxfast-garage-66093
06/12/2025, 8:24 PMfast-garage-66093
06/12/2025, 8:26 PMfast-garage-66093
06/12/2025, 8:27 PM// Note that this is not required for Docker for Windows when specifying
// a local Windows path, because Docker for Windows translates the Windows
// path into a valid path within the VM.
fast-garage-66093
06/12/2025, 8:42 PMdocker/cli
, moby/moby
, or moby/buildkit
that would translate /c/data to c:\data. I suspect this is part of the proprietary code of Docker Desktop.enough-smartphone-71732
06/12/2025, 8:43 PMfast-garage-66093
06/12/2025, 8:44 PMenough-smartphone-71732
06/12/2025, 8:44 PMfast-garage-66093
06/12/2025, 8:45 PMfast-garage-66093
06/12/2025, 8:45 PMfast-garage-66093
06/12/2025, 9:06 PMwide-mechanic-33041
06/12/2025, 9:12 PMenough-smartphone-71732
06/13/2025, 2:36 PM