If you want to enable the web-based VNC viewer, so that you do not need to install any client software, add the following lines to your compose file instead:
If you want to enable the web-based VNC viewer so that you do not need to install any client software, add the following lines to your compose file instead:
Afterwards you can visit [http://localhost:8006/](http://localhost:8006/) using any webbrowser to view the screen of the VM and interact with it via the keyboard/mouse.
Afterwards you can visit [http://localhost:8006/](http://localhost:8006/) using any webbrowser to view the screen of the VM and interact with it via the keyboard or mouse.
For emulating Windows there is [dockur/windows](https://github.com/dockur/windows), which is more dedicated to that purpose. It has all the same features as this container, but additionally includes a TPM emulator, all the necessary drivers, and it will even automaticly download the correct ISO file from the Microsoft servers.
For emulating Windows, there is [dockur/windows](https://github.com/dockur/windows), which is more dedicated to that purpose. It has all the same features as this container, but additionally includes a TPM emulator, all the necessary drivers, and it will even automatically download the correct ISO file from the Microsoft servers.
An added benefit of this approach is that you won't have to perform any port mapping anymore since all ports will be exposed by default.
An added benefit of this approach is that you won't have to perform any port mapping anymore, since all ports will be exposed by default.
Please note that this IP address won't be accessible from the Docker host due to the design of macvlan, which doesn't permit communication between the two. If this is a concern, you need to create a [second macvlan](https://blog.oddbit.com/post/2018-03-12-using-docker-macvlan-networks/#host-access) as a workaround.
Please note that in this mode, the container and the VM will each have their own separate IP's. The container will keep the macvlan IP, and the VM will be reachable via the DHCP IP.
Please note that in this mode, the container and the VM will each have their own separate IPs. The container will keep the macvlan IP, and the VM will be reachable via the DHCP IP.