- 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!
 
while running install-package on nanoserver, will call get-windowsfeature cmd that nano doesn't support