Hi everyone,
I am currently running Docker for Windows (3.3.2 – wsl2 support being enabled) and my goal is to be able to mount dd-images inside a container (linux) and make the mount point accessible to the host. Therefore, the host can access the files.
Everything works as intended inside the container which is started with the following parameter:
docker run --cap-add SYS_ADMIN --cap-add MKNOD --device /dev/fuse --privileged=true --mount type=bind,source=/c/Data,target=/data,bind-propagation=rshared -it fedora-forensics /bin/bash
After attaching a dd image to a loop device and mounting this loop device to /data/mount, I can see the content of the partition in /data/mount from inside the container. From the host the folder “c:\Data\mount“ is empty. I did not get any errors.
Then I deactivated the WSL2 support and suddenly got the following error when executing the above docker run command:
docker: Error response from daemon: path /host_mnt/c/Data is mounted on /host_mnt but it is not a shared mount.
Now I am somehow stuck. Is it even possible to make mounts from the container accessible to the host via shared folders? Meaning the bind option shared or rshared to not work on Windows?
Btw using samba is not an option due to port issues…
Kind regards,
Dennis