https://rancher.com/ logo
Title
s

swift-rainbow-28443

03/24/2023, 6:20 AM
How can we set the
mountType: 9p
in Windows ?
For Mac or Linux there is an
override.yaml
but Windows does has that ? Provisioning Scripts | Rancher Desktop Docs
w

wide-mechanic-33041

03/24/2023, 11:43 AM
windows uses wsl2 not lima for the linux env. I think wsl2 uses 9p by default on it’s mounts per some of the WSL2 docs
s

swift-rainbow-28443

03/24/2023, 11:47 AM
I’m getting some mount issues with rancher desktop which is not there with Docker Desktop. Will post the error when I get to recreate it.
f

fast-garage-66093

03/24/2023, 5:21 PM
Please file a Github issue as well, if you have instructions on how to reproduce the problem.
👀 1
Also (if you use macOS or Linux): with Rancher Desktop 1.8.0+ you can use
rdctl --set experimental.virtual-machine.mount.type=9p
instead of creating an
override.yaml
file. There are additional settings for the
9p
mount options (see Release Rancher Desktop 1.8.0)
🙌 1
s

swift-rainbow-28443

03/25/2023, 7:55 AM
FYI the following is the error:
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/mnt/wsl/rancher-desktop/run/docker-mounts/86b93509-7337-4fae-bfce-43898ed20f72" to rootfs at "/entrypoint": mount /mnt/wsl/rancher-desktop/run/docker-mounts/86b93509-7337-4fae-bfce-43898ed20f72:/entrypoint (via /proc/self/fd/7), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type.
Command :
docker run -it --mount type=bind,src=/root/airflow/trst.py,dst=/entrypoint --rm --pull never <http://ghcr.io/apache/airflow/main/ci/python3.7|ghcr.io/apache/airflow/main/ci/python3.7> python -m http.server
f

fast-garage-66093

03/25/2023, 10:08 PM
Thanks for filing the issue!