Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Docker on Windows Server 2019 for linux and windows containers


Install-WindowsFeature Hyper-V
Install-WindowsFeature Containers

mkdir "$Env:ProgramFiles\Docker"

cd "$Env:ProgramFiles\Docker"

Invoke-WebRequest -UseBasicParsing -OutFile dockerd.exe

Invoke-WebRequest -UseBasicParsing -OutFile docker.exe

cd ~\

Invoke-WebRequest -UseBasicParsing -OutFile

Expand-Archive -DestinationPath "$Env:ProgramFiles\Linux Containers\."

CMD.exe (Admin)

sc create Docker binpath= "\"C:\Program Files\Docker\dockerd.exe\" --run-service --experimental" start= delayed-auto
sc start Docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment