Hyper-V and Containers Windows features must be enabled. code example
Example 1: hyper-v enable
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
Example 2: Required Windows feature(s) not enabled : Hyper-V and Containers
Disable-WindowsOptionalFeature -FeatureName microsoft-hyper-v -online
restart-computer
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
restart-computer
Enable-WindowsOptionalFeature -Online -FeatureName Containers -All