Build Docker Container in a VM running Windows Server 2019

rsaritzkyrsaritzky Member Posts: 465
Hi all,

Has anyone had success using bccontainerhelper to build a Docker image inside a VM that is running Windows Server 2019? I believe I've installed Docker correctly - it shows that the service is running and the Hyper-V and Containers are active in Server Manager.

I'm trying to build various images, but here's an example:

Get-BcArtifactUrl -type sandbox -country us -select latest >> New-BCContainer -accept_eula -containerName test -artifactUrl $artifactUrl

Here's the error:
DockerDo : docker: Error response from daemon: hcsshim::CreateComputeSystem 08d66bf89e97d1b465493f2f16def4b3162393a78caf8d66e5482345f6b38ea6: The 
virtual machine could not be started because a required feature is not installed.
ExitCode: 125
Commandline: docker run --volume "c:\bcartifacts.cache:c:\dl" --label nav= --env isBcSandbox=Y --label version=21.1.48363.49222 --label 
platform=21.0.48357.49199 --label country=US --env artifactUrl= --env multitenant=Y 
--env licenseFile="" --name test --hostname test --env auth=Windows --env username="rons" --env ExitOnError=N --env locale=en-US --env 
databaseServer="" --env databaseInstance="" --volume "C:\ProgramData\BcContainerHelper:C:\ProgramData\BcContainerHelper" --volume 
"C:\ProgramData\BcContainerHelper\Extensions\test\my:C:\Run\my" --isolation hyperv --restart unless-stopped --env filesOnly=False --memory 8G --env 
enableApiServices=Y --env useSSL=N --env securePassword=76492d1116743f0423413b16050a5345MgB8AEYAegAyAHMARwBlADUAYwBMAEkAegBKAEYAcgBBADEARABjAEMAQQBH
NQAyADAANgA4AGMAOAA4AGIANQAyAGYAYQA= --env passwordKeyFile="c:\run\my\aes.key" --env removePasswordKeyFile=Y --env accept_eula=Y --env 
accept_outdated=Y --detach

I've followed troubleshooting help and have run commands to enable virtualization, but still am stuck here.

Here' the output from "docker version"
PS C:\Windows\system32> docker version
Client: Mirantis Container Runtime
 Version:           20.10.9
 API version:       1.41
 Go version:        go1.16.12m2
 Git commit:        591094d
 Built:             12/21/2021 21:34:30
 OS/Arch:           windows/amd64
 Context:           default
 Experimental:      true

Server: Mirantis Container Runtime
  Version:          20.10.9
  API version:      1.41 (minimum version 1.24)
  Go version:       go1.16.12m2
  Git commit:       9b96ce992b
  Built:            12/21/2021 21:33:06
  OS/Arch:          windows/amd64
  Experimental:     false

Has anyone tried this? Solution?




Sign In or Register to comment.