# Linux Container on Windowsmit LinuxKit
# https://blog.docker.com/2017/09/preview-linux-containers-on-windows/

mkdir "$Env:ProgramFiles\Linux Containers”

Invoke-WebRequest -UseBasicParsing -OutFile linuxkit.zip https://github.com/friism/linuxkit/releases/download/preview-1/linuxkit.zip

Expand-Archive linuxkit.zip -DestinationPath "$Env:ProgramFiles\Linux Containers\." -Force
rm linuxkit.zip

cd c:\skripte
Invoke-WebRequest -UseBasicParsing -OutFile dockerd.exe https://master.dockerproject.org/windows/x86_64/dockerd.exe
#Invoke-WebRequest -UseBasicParsing -OutFile docker.exe https://master.dockerproject.org/windows/x86_64/docker.exe

$Env:LCOW_SUPPORTED=1
.\dockerd.exe -D --experimental -H "npipe:////./pipe//docker_lcow" --data-root c:\lcow

#Check:
docker -H "npipe:////./pipe//docker_lcow" info
docker -H "npipe:////./pipe//docker_lcow" pull busybox
#Run a Linux container:
docker -H "npipe:////./pipe//docker_lcow" run -ti busybox sh
