Full manual here (https://msdn.microsoft.com/en-us/virtualization/windowscontainers/docker/configure_docker_daemon?f=255&MSPPError=-2147217396)
- Install Container Feature and reboot
Install-WindowsFeature containers
Restart-Computer -Force
- Install docker service (get latest from https://master.dockerproject.org)
Invoke-WebRequest "http://10.116.99.190/files/docker/docker-windows-1.12.zip" -OutFile "$env:TEMP\docker.zip" -UseBasicParsing
Expand-Archive -Path "$env:TEMP\docker.zip" -DestinationPath $env:ProgramFiles
$env:path += ";c:\program files\docker"
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Program Files\Docker", [EnvironmentVariableTarget]::Machine)
- Open firewall port 2375
netsh advfirewall firewall add rule name="docker engine" dir=in action=allow protocol=TCP localport=2375
- Configure Docker daemon to listen on both pipe and TCP (replaces docker --register-service invocation above)
dockerd.exe -H npipe:////./pipe/docker_engine -H 0.0.0.0:2375 --register-service
- Start service
Start-Service docker
- Load windows nano server image
Invoke-WebRequest "http://10.116.99.190/files/docker/nanoserver.tar.zip" -OutFile "$env:TEMP\nanoserver.tar.zip" -UseBasicParsing
Expand-Archive -Path "$env:TEMP\nanoserver.tar.zip" -DestinationPath "$env:TEMP"
iex "docker load -i $env:TEMP\nanoserver.tar"
- List images and start container
docker images
docker run -it microsoft/nanoserver powershell