I've been working with Docker and containers over the past few weeks. Today I wanted to configure a Nano server image as a container host. The process is well documented here: https://msdn.microsoft.com/en-us/virtualization/windowscontainers/deployment/deployment_nano
My host machine is running Windows 10 and I have Windows Server 2016 TP5 Nano running in a Hyper-V VM. When running the command:
Install-NanoServerPackage -Name Microsoft-NanoServer-Containers-Package
I received the following error:
Install-NanoServerPackage : Culture: en-GB is not supported
+ CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-NanoServerPackage
The reason being my host machine, hence the PowerShell remoting session's culture is set to en-GB which isn’t currently supported. To rectify this I had to exit out of the session and renter using a session option as follows:
Enter-PSSession -ComputerName $NanoVMIP -Credential ~\Administrator -SessionOption (New-PSSessionOption -Culture "en-US")
This ensures the remote PowerShell session's culture is set to en-US. I'm not sure if this will change when Server 2016 goes RTM, but hopefully this will help others who are trying out Windows Server containers and don’t live in the US!