Run Microsoft WinRM service in a Windows container.
351
Run Microsoft WinRM service in a Windows container.
Why?
You might want to have an integration test environment to try it out.
docker run -d --name winrm_server peco602/winrm-windows-docker:latest
or, if you want to expose WinRM ports:
docker run -d --name winrm_server -p 55985:5985 -p 55986:5986 peco602/winrm-windows-docker:latest
$IP = docker inspect -f "{{ .NetworkSettings.Networks.nat.IPAddress }}" winrm_server
$CRED = New-Object PSCredential 'User', (ConvertTo-SecureString -String 'Password12345!' -AsPlainText -Force)
Enter-PSSession -Credential $CRED -ComputerName $IP -Authentication Basic -UseSSL -SessionOption (New-PSSessionOption -SkipCACheck -SkipCNCheck)
docker rm --force winrm_server
Content type
Image
Digest
Size
2.1 GB
Last updated
over 4 years ago
docker pull peco602/winrm-windows-docker