Virtual Machine (VM) Support is not in scope at the moment, and will as an official feature be coming first to Portmaster Plus and Pro Subscribers. Yes this should also include docker support, but don't have to be released at the same time.
That being said, some VM software works with Portmaster.
Which software works and which does not heavenly depends on the type of Virtualization that is utilized.
Portmaster integrates in the network stack of your operating systems kernel. Normal Applications don't even see that Portmaster is doing anything to their connections.
Some VM software access the network stack like a normal application. Those Virtualization software will usually work fine with Portmaster, you might get an bypass attempt, but you can either ignore it (you know what is going on) or fix it (let Portmaster on the host system do the DNS handling). In those Cases the VM works as intended and you can configure the whole VM as one app in the (Host) Portmaster. Of course you do not see (at the moment) what applications from inside the VM is making which connections. You can of course always run a Portmaster inside the VM (which will cause the bypass attempt notification on the host).
We at Safing use VMs and can therefore say that the following Virtualization Applications work with Portmaster.
As mentioned on top, VM software is out of scope at the moment, and there are no attempts on making these (or other) Virtualization Applications work with Portmaster.
Thanks to hexadivine for the info over on GitHub
Portmaster do not support WSL2. However, you can do a workaround by changing the nameserver from resolv.conf file (in WSL2 instance).
sudo nano /etc/resolv.conf
add below nameserver
nameserver 1.1.1.1
Keep in mind that with this your traffic will still not be handled by Portmaster. This could be a potential privacy concern for some individuals.
Search terms: