nanoserver/iis
Nano Server + IIS. Updated on 08/21/2018 -- Version: 10.0.14393.2312
1M+
Install docker on your OS (Windows 10, Windows Server 2016, Nano Server, etc.). Once docker is installed, execute in elevated prompt (PowerShell 5, etc): docker pull nanoserver/iis
To run docker just type: docker run --name nanoiis -d -it -p 80:80 nanoserver/iis
Show base images: docker images
Show running containers: docker ps -a -f status=running
Show container IP: docker inspect -f "{{ .NetworkSettings.Networks.nat.IPAddress }}" nanoiis
Show containerID: docker inspect --format="{{.Id}}" nanoiis
Now you can access via browser using container IP Address (ex.: http://172.18.10.110 ). Use here container IP.
Access via powershell: Enter-PSSession -RunAsAdministrator
If you want container starts everytime docker service starts: docker update --restart=always
docker images
docker pull nanoserver/iis
docker run --name nano -d -it -p 80:80 nanoserver/iis
docker ps -a -f status=running
docker inspect -f "{{ .NetworkSettings.Networks.nat.IPAddress }}" nano
$container= docker inspect --format="{{.Id}}" nano $sesion = New-PSSession -ContainerId $container -RunAsAdministrator
Search of updates not installed. You can change "IsInstalled=0" for "IsInstalled=1" if you want to see updates installed.
$WinUpdate = {
$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
}
Invoke-Command -Session $sesion -ScriptBlock $WinUpdate
$WinUpdate = { $ci = New-CimInstance -Namespace root/Microsoft/Windows/WindowsUpdate -ClassName MSFT_WUOperationsSession Invoke-CimMethod -InputObject $ci -MethodName ApplyApplicableUpdates } Invoke-Command -Session $sesion -ScriptBlock $WinUpdate
Nano Server is a Microsoft product. Terms of use and official image base: https://hub.docker.com/r/microsoft/nanoserver/
Hope you enjoy it. Rate, comment and share it. Thanks...
Dockerfile: https://github.com/nanoserver/iis/blob/master/Dockerfile
docker pull nanoserver/iis