Bind-mounted non-existing folder does not get created on host when using -v option #7610
Labels
area/volume
Access to host volumes from inside the VM or containers
kind/bug
Something isn't working
triage/need-to-repro
Needs to be reproduced by dev team
Actual Behavior
When mounting a non-existing folder using the
-v
option, the target folder is created in the container, but not on the Docker host. According to https://docs.docker.com/engine/storage/bind-mounts/#differences-between--v-and---mount-behavior this should be the case. This works as expected when using Docker Desktop, but not when using Rancher Desktop.Steps to Reproduce
Mount a non-existing folder using the -v option, e.g.:
docker run -it -v /nonexisting:/hello busybox
hello
folder is available in the containernonexisting
folder has not been created on the hostResult
The folder is created inside the container, but the counterpart on the Docker host is not.
Expected Behavior
Follow the behavior of Docker Desktop to create the empty folder on the host: https://docs.docker.com/engine/storage/bind-mounts/#differences-between--v-and---mount-behavior
Additional Information
No response
Rancher Desktop Version
1.16.0
Rancher Desktop K8s Version
n/a
Which container engine are you using?
moby (docker cli)
What operating system are you using?
Windows
Operating System / Build Version
Windows 10 22H2
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
None
Windows User Only
No response
The text was updated successfully, but these errors were encountered: