Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cassidydotdk/1c29cf78afb6689330757e47ca6d609b to your computer and use it in GitHub Desktop.
Save cassidydotdk/1c29cf78afb6689330757e47ca6d609b to your computer and use it in GitHub Desktop.
- Create your VM as normal, get Windows installed and so on
- Power the VM down, to "Off" state
- On the HOST pc, execute the following 2 commands from an elevated Powershell prompt
Set-VMProcessor -VMName "Name of your VM" -ExposeVirtualizationExtensions $true
Get-VMNetworkAdapter -VMName "Name of your VM" | Set-VMNetworkAdapter -MacAddressSpoofing On
- Start up the VM again
- Inside the VM, execute the following command from an elevated Powershell prompt
Enable-WindowsOptionalFeature -Online -FeatureName $("Microsoft-Hyper-V", "Containers") -All
(reboot of the VM might be necessary)
After this, proceed to install and use Docker for Windows as normal.
Profit!
@cassidydotdk
Copy link
Author

Sourced from here https://gist.github.com/vtml/6df36cdf6cec2aee15277f871c928e79, with slight modifications.

Set-ExecutionPolicy RemoteSigned -Force; Set-ExecutionPolicy Unrestricted -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install dotnetcore -y
choco install dotnetcore-sdk -y
choco install webdeploy -y
choco install dotnetfx -y
choco install netfx-4.8 -y
choco install powershell-core -y
choco install azure-cli -y
choco install git -y
choco install vscode -y
choco install visualstudio2019buildtools -y
choco install nuget.commandline -y
choco install dacfx-18 -y
choco install docker-desktop -y

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment