Is it possible to mount a linux filesystem image file within an Ubuntu docker container running on Windows 10 Pro ?
I suspect it is not possible, can someone please confirm ?
I am running an Ubuntu container on a Windows 10 Pro docker host.
Within the Ubuntu container I want to mount a Linux filesystem image file.
On my VMWare Ubuntu VM I run 'sudo losetup -f P ’ which sets up loop devices for the image partitions.
I created my Ubuntu container with ‘–privileged’ and see that the Ubuntu container /dev/loop devices are created.
When I run ‘losetup’ within my Ubuntu container it fails with a ‘permission denied’ error.
Running ‘partprobe’ also results in the same error.
I am new to docker and don’t quite understand what it’s doing under the hood, but suspect that this simply won’t work on Windows.
I suspect it would work with docker hosted on a Linux host since the underlying architecture is the same but on Windows it can’t map the loop devices.
Hopefully someone can make sense of my scribbles above and comment.
Thanks for any help,