Build Docker Container in a VM running Windows Server 2019

rsaritzky
Member Posts: 469
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:
I've followed troubleshooting help and have run commands to enable virtualization, but still am stuck here.
Here' the output from "docker version"
Has anyone tried this? Solution?
Thx
Ron
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=https://bcartifacts.azureedge.net/sandbox/21.1.48363.49222/us --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 AHcAPQA9AHwAZQBmADMAMgAwADUAMwA1ADEAMQAwAGEAMgA0ADcAZQA4ADEAOQA2AGIAZABhADAANgAyADQAMwAxADEANAAyAGUAYgBmAGQAMwAzAGMAZAAxADAAOQA2ADgAYwBlADcAYwA5AGMA NQAyADAANgA4AGMAOAA4AGIANQAyAGYAYQA= --env passwordKeyFile="c:\run\my\aes.key" --env removePasswordKeyFile=Y --env accept_eula=Y --env accept_outdated=Y --detach mcr.microsoft.com/businesscentral:10.0.17763.3532
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 Engine: 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?
Thx
Ron
Ron
0
Answers
-
Yep, I have 5 Hyper-V VMs, 4 of which are on Windows Server 2019, and one on 2022. All of them have Docker Enterprise installed and are using BCContainerHelper to create containers. No problem for me. For specific support, file an issue on GitHub here: https://github.com/microsoft/navcontainerhelper/issues Freddy monitors that and he usually responds pretty quickly.1
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions