- Open PowerShell as Administrator
Test-WSMan xx.xxx.xxx.xx
Enable-PSRemoting
- Enter public IP address of nano server:
$ip = "xx.xxx.xxx.xx"
Set-Item WSMan:\localhost\Client\TrustedHosts "$ip" -Force
Enter-PSSession -ComputerName $ip -Credential "~\Administrator"
- Enter Password
$ci = New-CimInstance -Namespace root/Microsoft/Windows/WindowsUpdate -ClassName MSFT_WUOperationsSession
$result = $ci | Invoke-CimMethod -MethodName ScanForUpdates -Arguments @{SearchCriteria="IsInstalled=0";OnlineScan=$true}
$result.Updates
$ci = New-CimInstance -Namespace root/Microsoft/Windows/WindowsUpdate -ClassName MSFT_WUOperationsSession
Invoke-CimMethod -InputObject $ci -MethodName ApplyApplicableUpdates
Restart-Computer; exit
Install-Module -Name DockerMsftProvider -Repository PSGallery -Force
Install-Package -Name docker -ProviderName DockerMsftProvider
Restart-Computer -Force
docker pull tonysneed/helloaspnet:nanoserver
docker images
docker run -d -p 80:5000 --name helloaspnet tonysneed/helloaspnet:nanoserver
docker ps
http://xx.xxx.xxx.xx
- You should see: Hello World!
Any idea what this means? Brand new Windows 2016 server nano vm I spun up in azure. Happens at the end of the pull command.
docker : failed to register layer: re-exec error: exit status 1: output: ProcessBaseLayer
C:\ProgramData\docker\windowsfilter\5d26a92dc95558f86fbc03eb74013ce1f733adb9ec1e593c0db52dda8aa437d3: This operation returned because the timeout period expired.