Problem:
I am unable to install the windowsservercore
image in docker
.
This is similar to that posed here: windowsservercore container image not installing
Set-up:
macOS Sierra
with Windows Server 2016 TP5
running inside VirtualBox
alongside docker
.
Steps taken:
In advance i have successfully run:
Install-WindowsFeature containers
Enable-WindowsOptionalFeature -Online -FeatureName Containers
I have then run:
docker pull microsoft/windowsservercore
This resulted in a download and a message saying 'Unknown blob'
. I don't know where it has downloaded to or what to do with this 'Unknown blob'
.
How do i now ensure this is installed as the windowsservercore
image for docker
to use?
I have:
1) Re-started docker
and run docker images
which shows no installed images in the repository.
2) Downloaded the image file 'WindowsServerCore-10-0-14300-1000.wim' to C:\Program Files\docker
, where i also have the docker
and dockerd
executables.
Can i install this image file instead? If so, how please?
The solution was to remove the existing docker and dockerd files in the docker folder and then follow exactly the instructions here: build-your-first-docker-windows-server-container. I believe this installed the Windows-native Docker engine directly. This ensured Docker Engine was running as a Windows service.
Archive link for above: