Skip to content

Instantly share code, notes, and snippets.

@TerribleDev
Last active January 10, 2021 05:52
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save TerribleDev/dd424d3d090bcf5634dcf8417411a081 to your computer and use it in GitHub Desktop.
Save TerribleDev/dd424d3d090bcf5634dcf8417411a081 to your computer and use it in GitHub Desktop.
install hyper-v, containers, and beta docker on windows so you can use windows containers
# allow scripts to run
set-executionpolicy unrestricted -Force
Get-WindowsOptionalFeature -Online | where {$_.FeatureName -like "*Hyper*" -or $_.FeatureName -like "containers" } | Enable-WindowsOptionalFeature -Online -NoRestart
(new-object net.webclient).DownloadFile('https://download.docker.com/win/beta/InstallDocker.msi','docker.msi')
Start-Process 'docker.msi' /qn -Wait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment