I am using Windows 11 and Docker Desktop 4.1.1 (69879).
I have mounted a physical drive in wsl2 and partitioned and formatted as ext4.
I could mount it in Ubuntu-20.04 my default wsl2 machine.
I would like to use this ext4 filesystem to mount in a Docker container that I start from Windows 11 command prompt. But how can I (temporary or permanently) mount this partition under the docker-desktop or docker-desktop-data vm?
The reason I am trying to do this is to be able to achive more performance from my Oracle 19 Docker container. Currently the Oracle data file are placed on a Windows NTFS paratition. I do not want to copy these files to Docker virtual filesystem, because these are over 200GB and I do not want my image to grow.
What I did:
wsl --mount \.\PHYSICALDRIVE1
(this made my non system SSD available for all my 3 wsl2 vms)
e2label /dev/sdc1 disk-c-part1
mount /dev/sdc1 /mnt/disk-c-part1
So after this the physical disk is acessible from Ubuntu-20.04 az /mnt/disk-c-part1 but not from docker-desktop or docker-desktop-data.