How to import custom .iso/.img with docker?

Related to Import custom ISO and alternative approach to sudo reboot function in Docker image

Note that the last response seems to contain AI, so take it with a grain of salt, it might not work 100%.

As discussed before, the ISO/img file usually contains a whole OS, you can’t simpl run that in Docker, which is used for processes, as @meyay phrased it.

You can mount an ISO on host to extract the files. But if there are applications included, they might not run in your Docker container. Usually Docker is running Linux apps, but it seems you want to run a Windows .exe.

What’s the reason to want to force a VM image into a Docker container? Why not use a simple VM like (free) VirtualBox?