Yes this is possible, but note that due to the way we generate binary licenses (see this) , licenses might change when you move a VM across physical systems (unless you use live migration) or at every reboot (for containers).
For Docker and other containers please see