-
Notifications
You must be signed in to change notification settings - Fork 9
Windows 10 Install-ContainerOSImage missing #15
Description
I have Windows 10 anniversary edition (winver = version 1607 OS Build 14393.51) on my home laptop and an Azure VM running Windows Server 2016 CTP 5 - installed via the shiny blue "Deploy to Azure" button here:
I cannot get docker images to work on either box - but for different reasons. This issue is about the windows 10 laptop. I can't install the OS base images and I'm losing my will to keep fighting with this (I guess some people are simply not destined to run their apps in a docker container).
I've followed the "quick" start instructions for windows 10 here:
I have container & hyper-v optional WindowsOptionalFeatures enabled and docker setup. I'm struggling to install base images on the laptop. I'm based in South Africa - network connectivity is kak. These all timeout and fail:
- docker pull microsoft/windowsservercore
- Install-ContainerImage -Name WindowsServerCore
I managed to download the .wim files directly by finding the urls in Find-ContainerImage i.e.
I was hoping that I could do the offline installation as mentioned here:
https://msdn.microsoft.com/en-us/virtualization/windowscontainers/management/manage_images#offline-installation
Alas I don't have Install-ContainerOSImage as a powershell commandlet on the Win 10 laptop:
Install-ContainerOSImage : The term 'Install-ContainerOSImage' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
It appears that the Install-ContainerOSImage is available on the Windows Server 2016 box though:
PS C:\Users\ilan> get-command Install-ContainerOSImage
CommandType Name Version Source
----------- ---- ------- ------
Function Install-ContainerOSImage 1.0.0.0 Containers
Looks like it's installed by the WindowsOptionalFeatures stuff (nb which is enabled on server and laptop but seems to have different functionality) i.e.:
Enable-WindowsOptionalFeature -Online -FeatureName containers -All
I did a file comparison on the powershell files on the server vs my laptop and indeed the server has more powershell functionality than the laptop version:
C:\Windows\System32\WindowsPowerShell\v1.0\Modules\Containers\1.0.0.0
Containers.psm1 = only on the server - and contains `Install-ContainerOSImage`
Summary
- How can I install the .wim on the laptop?
- Or is there an alternative method for offline installation? (I was considering
docker saveon the server anddocker loadon the laptop)