Cannot create Docker Container with NEW-BCContainer-Command

Hallo Everybody,

i have a problem when i try to create a Docker Containter for Business Central 14. I have tried it with many several Skripts.

Here is the script that i want to use:

New-BcContainer -accept_eula
-containerName $containerName -credential $credential
-auth $auth -artifactUrl $artifactUrl
-imageName ‘mybcimage’ -licenseFile $licenseFile
-dns ‘8.8.8.8’ -memoryLimit 8G
-includeCSIDE `
-updateHosts
-isolation hyperv

All works fine until i come to the following point:

Step 1/6 : FROM mcr.microsoft.com/businesscentral:10.0.19041.1415
—> 3873b4bd7257
Step 2/6 : ENV DatabaseServer=localhost DatabaseInstance=SQLEXPRESS DatabaseName=CRONUS IsBcSandbox=N artifactUr
l=https://bcartifacts.azureedge.net/onprem/14.28.47690.0/de filesOnly=False
—> Running in 81fab4c50aba
Removing intermediate container 81fab4c50aba
—> 28db59d08cb4
Step 3/6 : COPY my /run/
—> 98109a41e5f6
Step 4/6 : COPY NAVDVD /NAVDVD/
—> 736f533ce317
Step 5/6 : RUN \Run\start.ps1 -installOnly
—> Running in 11ece7409116
New-Bcimage Telemetry Correlation Id: f9fdc1bd-b170-4263-835d-0aeb76e49bae
New-BcContainer Telemetry Correlation Id: 81875eb5-e12f-45f8-82c8-9f66ee03381e

here is the error message:
DockerDo : container 11ece740911688f84d539aa050648bfdc35554c31e9b74b32ca22eb9d8d74905 encountered an error
during hcs::System::Start: failure in a Windows system call: Der virtuelle Computer oder Container wurde
unerwartet beendet. (0xc0370106)
ExitCode: 1
Commandline: docker build --isolation=process --memory 8G --no-cache --tag mybcimage:onprem-14.28.47690.0-de
c:\bcartifacts.cache\guzhbgvb.voi
In C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.0\ContainerHandling\New-NavImage.ps1:694
Zeichen:27

  • … if (!(DockerDo -command build -parameters @("–isolation=$isola …
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:slight_smile: [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,DockerDo

But the script creates a image.

But when i try to create a container from the image i get the following error:

At least 3Gb memory needs to be available to the Container.

2023-11-10 08:46:00 At C:\Run\start.ps1:49 char:5
2023-11-10 08:46:00 + throw "At least 3Gb memory needs to be available to the Container …
2023-11-10 08:46:00 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-11-10 08:46:00 + CategoryInfo : OperationStopped: (At least 3Gb me… the Contai
2023-11-10 08:46:00 ner.:String) , RuntimeException
2023-11-10 08:46:00 + FullyQualifiedErrorId : At least 3Gb memory needs to be available to the
2023-11-10 08:46:00 Container.
2023-11-10 08:46:00
2023-11-10 09:03:38 At least 3Gb memory needs to be available to the Container.
2023-11-10 09:03:38 At C:\Run\start.ps1:49 char:5
2023-11-10 09:03:38 + throw "At least 3Gb memory needs to be available to the Container …
2023-11-10 09:03:38 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-11-10 09:03:38 + CategoryInfo : OperationStopped: (At least 3Gb me… the Contai
2023-11-10 09:03:38 ner.:String) , RuntimeException
2023-11-10 09:03:38 + FullyQualifiedErrorId : At least 3Gb memory needs to be available to the
2023-11-10 09:03:38 Container.
2023-11-10 09:03:38

I see a lot of help-tickets that tell me that i have to maximize the Memory. But i can not find this setup in the docker desktop app

Could you please help me to find a solution?

Thank’s in advance

Sebastian Scheja