Is there any way to mount an ISO contained in a Docker so that the contents of the ISO are available to the host machine?
I can do this on a Linux host by using a bind mount with
shared as the bind propagation setting and then mounting to the shared folder within the Docker.
docker run -v /mnt/myiso:/mnt/myiso:shared --privileged mydocker
mount myimage.iso /mnt/myiso
shared bind propagation is only available on Linux hosts. I would like this to work on macOS and Windows hosts as well.
I thought perhaps an NFS share would enable it but I haven't been able to get that to work (the NFS volume is always mounted with
slave propagation within the container).