microsoft / navcontainerhelper

Official Microsoft repository for BcContainerHelper, a PowerShell module, which makes it easier to work with Business Central Containers on Docker.
MIT License
376 stars 243 forks source link

New-BcContainer runs into error: "hcsshim::ImportLayer failed in Win32: The system cannot find the path specified." #3595

Open someC0d3r opened 1 month ago

someC0d3r commented 1 month ago

Describe the issue

Currently creating a container runs into an error:

An error occurred while creating the container:
re-exec error: exit status 1: output: hcsshim::ImportLayer failed in Win32: The system cannot find the path specified. (0x3)
ExitCode: 1
Commandline: docker build --isolation=hyperv --memory 8G --no-cache --tag bc243-de:sandbox-24.3.21374.21951-de-mt c:\bcartifacts.cache\h4zq4mr0.vuc

Scripts used to create container and cause the issue

New-BcContainer `
        -isolation hyperv `
        -containerName "bc243-de" `
        -licenseFile "License.bclicense" `
        -artifactUrl "https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.3.21374.21951/de" `
        -auth NavUserPassword `
        -shortcuts Desktop `
        -useBestContainerOS `
        -Credential $credentials `
        -updateHosts `
        -assignPremiumPlan `
        -includeTestToolkit `
        -enableTaskScheduler:$false `
        -accept_eula `
        -memoryLimit 8G `
        -imageName "bc243-de"

Docker Version

PS C:\Users\*****> docker version
Client:
 Version:           27.0.3
 API version:       1.46
 Go version:        go1.21.11
 Git commit:        7d4bcd8
 Built:             Sat Jun 29 00:03:32 2024
 OS/Arch:           windows/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          27.0.3
  API version:      1.46 (minimum version 1.24)
  Go version:       go1.21.11
  Git commit:       662f78c
  Built:            Sat Jun 29 00:02:13 2024
  OS/Arch:          windows/amd64
  Experimental:     false

BcContainerHelper Version

BcContainerHelper version 6.0.19
BC.HelperFunctions emits usage statistics telemetry to Microsoft
Running on Windows, PowerShell 5.1.22621.2506

Full output of scripts

Output ``` ---------------------------------------- New-BcContainer parameters: Name Value ---- ----- isolation hyperv containerName bc243-de licenseFile License.bclicense shortcuts Desktop useBestContainerOS True credential System.Management.Automation.PSCredential updateHosts True memoryLimit 8G artifactUrl https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.3.21374.21951/de auth NavUserPassword assignPremiumPlan True imageName bc243-de EnableTaskScheduler False includeTestToolkit True accept_eula True ---------------------------------------- Proceed with creating a new container? (y/n): y BcContainerHelper version 6.0.19 BC.HelperFunctions emits usage statistics telemetry to Microsoft Running on Windows, PowerShell 5.1.22621.2506 BcContainerHelper is version 6.0.19 BcContainerHelper is not running as administrator Host is Microsoft Windows 11 Enterprise - 10.0.22631.3296 UsePsSession is True UsePwshForBc24 is True UseWinRmSession is allow UseSslForWinRmSession is True Docker Client Version is 27.0.3 Docker Server Version is 27.0.3 Removing Desktop shortcuts Fetching all docker images Fetching all docker volumes ArtifactUrl and ImageName specified Fetching all docker images Building multitenant image bc243-de:sandbox-24.3.21374.21951-de-mt based on mcr.microsoft.com/businesscentral:ltsc2022 with https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.3.21374.21951/de Pulling latest image mcr.microsoft.com/businesscentral:ltsc2022 ltsc2022: Pulling from businesscentral 7c76e5cf7755: Pulling fs layer eb373ec9afdf: Pulling fs layer 8426b23d3e64: Pulling fs layer 54d1653c74b4: Pulling fs layer b98a95db17cd: Pulling fs layer b98a95db17cd: Waiting 54d1653c74b4: Waiting 1b31cad5cb0d: Pulling fs layer 1b31cad5cb0d: Waiting 4ad93726e149: Pulling fs layer fc7ce74e2e1a: Pulling fs layer 4ad93726e149: Waiting 8fb101093017: Pulling fs layer fc7ce74e2e1a: Waiting 2e14abbb50cf: Pulling fs layer 8fb101093017: Waiting da278fa84803: Pulling fs layer 2e14abbb50cf: Waiting 5922f2633c32: Pulling fs layer da278fa84803: Waiting 77321eca4b1d: Pulling fs layer 5922f2633c32: Waiting 77321eca4b1d: Waiting 921be6f5748c: Pulling fs layer 921be6f5748c: Waiting 8426b23d3e64: Verifying Checksum 8426b23d3e64: Download complete 54d1653c74b4: Verifying Checksum 54d1653c74b4: Download complete b98a95db17cd: Verifying Checksum b98a95db17cd: Download complete 1b31cad5cb0d: Verifying Checksum 1b31cad5cb0d: Download complete 4ad93726e149: Verifying Checksum 4ad93726e149: Download complete fc7ce74e2e1a: Verifying Checksum fc7ce74e2e1a: Download complete eb373ec9afdf: Verifying Checksum eb373ec9afdf: Download complete 2e14abbb50cf: Verifying Checksum 2e14abbb50cf: Download complete da278fa84803: Verifying Checksum da278fa84803: Download complete 5922f2633c32: Verifying Checksum 5922f2633c32: Download complete 77321eca4b1d: Verifying Checksum 77321eca4b1d: Download complete 921be6f5748c: Verifying Checksum 921be6f5748c: Download complete 7c76e5cf7755: Verifying Checksum 7c76e5cf7755: Download complete 8fb101093017: Verifying Checksum 8fb101093017: Download complete 7c76e5cf7755: Pull complete eb373ec9afdf: Pull complete 8426b23d3e64: Pull complete 54d1653c74b4: Pull complete b98a95db17cd: Pull complete 1b31cad5cb0d: Pull complete 4ad93726e149: Pull complete fc7ce74e2e1a: Pull complete 8fb101093017: Pull complete 2e14abbb50cf: Pull complete da278fa84803: Pull complete 5922f2633c32: Pull complete 77321eca4b1d: Pull complete 921be6f5748c: Pull complete Digest: sha256:c3f4032b6b82ae3c5bcb0a2d15e7d24ba53097f3e7a9c8266163a591fb9ace39 Status: Downloaded newer image for mcr.microsoft.com/businesscentral:ltsc2022 mcr.microsoft.com/businesscentral:ltsc2022 Generic Tag: 1.0.2.38 Container OS Version: 10.0.20348.2529 (ltsc2022) Host OS Version: 10.0.22631.3296 (23H2) Using hyperv isolation Using license file License.bclicense Files in c:\bcartifacts.cache\h4zq4mr0.vuc\my: Copying Platform Artifacts c:\bcartifacts.cache\sandbox\24.3.21374.21951\platform Copying Database Copying Licensefile Copying ConfigurationPackages C:\bcartifacts.cache\sandbox\24.3.21374.21951\de\ConfigurationPackages Copying Extensions C:\bcartifacts.cache\sandbox\24.3.21374.21951\de\Extensions Copying Applications.DE C:\bcartifacts.cache\sandbox\24.3.21374.21951\de\Applications.DE c:\bcartifacts.cache\h4zq4mr0.vuc Sending build context to Docker daemon 2.802GB Step 1/6 : FROM mcr.microsoft.com/businesscentral:ltsc2022 ---> 44a20f8c96b0 Step 2/6 : ENV DatabaseServer=localhost DatabaseInstance=SQLEXPRESS DatabaseName=CRONUS IsBcSandbox=Y artifactUrl=https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.3.21374.21951/de filesOnly=False ---> Running in da06ce3a6936 ---> Removed intermediate container da06ce3a6936 ---> 7348d2522d65 Step 3/6 : COPY my /run/ ---> 4542028a4895 Step 4/6 : COPY NAVDVD /NAVDVD/ ---> 8ab974c25ec7 Step 5/6 : RUN \Run\start.ps1 -installOnly -multitenant -includeTestToolkit ---> Running in e65b4e169252 c:\run\my folder doesn't exist, creating it Using DVD installer from C:\Run\240 Installing Business Central: multitenant=True, installOnly=True, filesOnly=False, includeTestToolkit=True, includeTestLibrariesOnly=False, includeTestFrameworkOnly=False, includePerformanceToolkit=False, appArtifactPath=, platformArtifactPath=, databasePath=, licenseFilePath=, rebootContainer=False Installing from DVD Starting Local SQL Server Starting Internet Information Server Copying Service Tier Files C:\NAVDVD\ServiceTier\Program Files C:\NAVDVD\ServiceTier\System64Folder Copying Web Client Files C:\NAVDVD\WebClient\Microsoft Dynamics NAV Copying ModernDev Files C:\NAVDVD C:\NAVDVD\ModernDev\program files\Microsoft Dynamics NAV Copying additional files Copying ConfigurationPackages C:\NAVDVD\ConfigurationPackages Copying Test Assemblies C:\NAVDVD\Test Assemblies Copying Extensions C:\NAVDVD\Extensions Copying Applications C:\NAVDVD\Applications Copying Applications.DE C:\NAVDVD\Applications.DE Copying dependencies Importing PowerShell Modules Restoring CRONUS Demo Database Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS Exporting Application to CRONUS Removing Application from tenant Modifying Business Central Service Tier Config File for Docker Creating Business Central Service Tier Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll' C:\Applications.DE\Microsoft_Permissions Mock_24.3.21374.21951.app C:\Applications.DE\Microsoft_Test Runner_24.3.21374.21951.app C:\Applications.DE\Microsoft_Any_24.3.21374.21951.app C:\Applications.DE\Microsoft_Library Assert_24.3.21374.21951.app C:\Applications.DE\Microsoft_Permissions Mock_24.3.21374.21951.app C:\Applications.DE\Microsoft_Library Variable Storage_24.3.21374.21951.app C:\Applications.DE\Microsoft_System Application Test Library_24.3.21374.21951.app C:\Applications.DE\Microsoft_Business Foundation Test Libraries_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-TestLibraries_24.3.21374.21951.app C:\Applications\System Application\Test\Microsoft_System Application Test.app C:\Applications\BusinessFoundation\Test\Microsoft_Business Foundation Tests.app C:\Applications.DE\Microsoft_Tests-Bank_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Cash Flow_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Cost Accounting_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-CRM integration_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Data Exchange_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Dimension_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-ERM_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Fixed Asset_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-General Journal_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Graph_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Integration_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Invoicing_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Job_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Local_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Marketing_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Misc_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Monitor Sensitive Fields_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Permissions_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Physical Inventory_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Prepayment_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Rapid Start_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Report_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Resource_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Reverse_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-SCM_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-SMB_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Upgrade_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-User_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-VAT_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Workflow_24.3.21374.21951.app Starting Business Central Service Tier Importing CRONUS license file Copying Database on localhost\SQLEXPRESS from tenant to default Taking database tenant offline Copying database files Attaching files as new Database default Putting database tenant back online Mounting tenant database Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False Sync'ing Tenant Tenant is Operational Permissions Mock is already published Synchronizing Permissions Mock Installing Permissions Mock Test Runner is already published Synchronizing Test Runner Installing Test Runner Any is already published Synchronizing Any Installing Any Library Assert is already published Synchronizing Library Assert Installing Library Assert Skipping Permissions Mock as it is already installed Library Variable Storage is already published Synchronizing Library Variable Storage Installing Library Variable Storage Publishing C:\Applications.DE\Microsoft_System Application Test Library_24.3.21374.21951.app Synchronizing System Application Test Library Installing System Application Test Library Publishing C:\Applications.DE\Microsoft_Business Foundation Test Libraries_24.3.21374.21951.app Synchronizing Business Foundation Test Libraries Installing Business Foundation Test Libraries Publishing C:\Applications.DE\Microsoft_Tests-TestLibraries_24.3.21374.21951.app Synchronizing Tests-TestLibraries Installing Tests-TestLibraries Publishing C:\Applications\System Application\Test\Microsoft_System Application Test.app Synchronizing System Application Test Installing System Application Test Publishing C:\Applications\BusinessFoundation\Test\Microsoft_Business Foundation Tests.app Synchronizing Business Foundation Tests Installing Business Foundation Tests Publishing C:\Applications.DE\Microsoft_Tests-Bank_24.3.21374.21951.app Synchronizing Tests-Bank Installing Tests-Bank Publishing C:\Applications.DE\Microsoft_Tests-Cash Flow_24.3.21374.21951.app Synchronizing Tests-Cash Flow Installing Tests-Cash Flow Publishing C:\Applications.DE\Microsoft_Tests-Cost Accounting_24.3.21374.21951.app Synchronizing Tests-Cost Accounting Installing Tests-Cost Accounting Publishing C:\Applications.DE\Microsoft_Tests-CRM integration_24.3.21374.21951.app Synchronizing Tests-CRM integration Installing Tests-CRM integration Publishing C:\Applications.DE\Microsoft_Tests-Data Exchange_24.3.21374.21951.app Synchronizing Tests-Data Exchange Installing Tests-Data Exchange Publishing C:\Applications.DE\Microsoft_Tests-Dimension_24.3.21374.21951.app Synchronizing Tests-Dimension Installing Tests-Dimension Publishing C:\Applications.DE\Microsoft_Tests-ERM_24.3.21374.21951.app Synchronizing Tests-ERM Installing Tests-ERM Publishing C:\Applications.DE\Microsoft_Tests-Fixed Asset_24.3.21374.21951.app Synchronizing Tests-Fixed Asset Installing Tests-Fixed Asset Publishing C:\Applications.DE\Microsoft_Tests-General Journal_24.3.21374.21951.app Synchronizing Tests-General Journal Installing Tests-General Journal Publishing C:\Applications.DE\Microsoft_Tests-Graph_24.3.21374.21951.app Synchronizing Tests-Graph Installing Tests-Graph Publishing C:\Applications.DE\Microsoft_Tests-Integration_24.3.21374.21951.app Synchronizing Tests-Integration Installing Tests-Integration Publishing C:\Applications.DE\Microsoft_Tests-Invoicing_24.3.21374.21951.app Synchronizing Tests-Invoicing Installing Tests-Invoicing Publishing C:\Applications.DE\Microsoft_Tests-Job_24.3.21374.21951.app Synchronizing Tests-Job Installing Tests-Job Publishing C:\Applications.DE\Microsoft_Tests-Local_24.3.21374.21951.app Synchronizing Tests-Local Installing Tests-Local Publishing C:\Applications.DE\Microsoft_Tests-Marketing_24.3.21374.21951.app Synchronizing Tests-Marketing Installing Tests-Marketing Publishing C:\Applications.DE\Microsoft_Tests-Misc_24.3.21374.21951.app Synchronizing Tests-Misc Installing Tests-Misc Publishing C:\Applications.DE\Microsoft_Tests-Monitor Sensitive Fields_24.3.21374.21951.app Synchronizing Tests-Monitor Sensitive Fields Installing Tests-Monitor Sensitive Fields Publishing C:\Applications.DE\Microsoft_Tests-Permissions_24.3.21374.21951.app Synchronizing Tests-Permissions Installing Tests-Permissions Publishing C:\Applications.DE\Microsoft_Tests-Physical Inventory_24.3.21374.21951.app Synchronizing Tests-Physical Inventory Installing Tests-Physical Inventory Publishing C:\Applications.DE\Microsoft_Tests-Prepayment_24.3.21374.21951.app Synchronizing Tests-Prepayment Installing Tests-Prepayment Publishing C:\Applications.DE\Microsoft_Tests-Rapid Start_24.3.21374.21951.app Synchronizing Tests-Rapid Start Installing Tests-Rapid Start Publishing C:\Applications.DE\Microsoft_Tests-Report_24.3.21374.21951.app Synchronizing Tests-Report Installing Tests-Report Publishing C:\Applications.DE\Microsoft_Tests-Resource_24.3.21374.21951.app Synchronizing Tests-Resource Installing Tests-Resource Publishing C:\Applications.DE\Microsoft_Tests-Reverse_24.3.21374.21951.app Synchronizing Tests-Reverse Installing Tests-Reverse Publishing C:\Applications.DE\Microsoft_Tests-SCM_24.3.21374.21951.app Synchronizing Tests-SCM Installing Tests-SCM Publishing C:\Applications.DE\Microsoft_Tests-SMB_24.3.21374.21951.app Synchronizing Tests-SMB Installing Tests-SMB Publishing C:\Applications.DE\Microsoft_Tests-Upgrade_24.3.21374.21951.app Synchronizing Tests-Upgrade Installing Tests-Upgrade Publishing C:\Applications.DE\Microsoft_Tests-User_24.3.21374.21951.app Synchronizing Tests-User Installing Tests-User Publishing C:\Applications.DE\Microsoft_Tests-VAT_24.3.21374.21951.app Synchronizing Tests-VAT Installing Tests-VAT Publishing C:\Applications.DE\Microsoft_Tests-Workflow_24.3.21374.21951.app Synchronizing Tests-Workflow Installing Tests-Workflow Stopping Business Central Service Tier Installation took 979 seconds Installation complete New-Bcimage Telemetry Correlation Id: b99e5ba0-216c-400d-adc8-3345a5184d3b New-BCContainer Telemetry Correlation Id: 542a7e2f-a192-46b2-95fd-e1bf2df3547d An error occurred while creating the container: re-exec error: exit status 1: output: hcsshim::ImportLayer failed in Win32: The system cannot find the path specified. (0x3) ExitCode: 1 Commandline: docker build --isolation=hyperv --memory 8G --no-cache --tag bc243-de:sandbox-24.3.21374.21951-de-mt c:\bcartifacts.cache\h4zq4mr0.vuc Press any key to continue...: ```

Screenshots image

Additional context

Edit: My colleague which successfully created a new container 2 days ago tested it now, and he also gets the same error. BcContainerHelper version: 6.0.20-preview1214 Docker Version: 26.1.0

akhileshekartha commented 1 month ago

Hi I had the same issue on run al pipeline yesterday, once I remove the license it’s working, I am not sure it’s related to license issue

someC0d3r commented 1 month ago

Hi I had the same issue on run al pipeline yesterday, once I remove the license it’s working, I am not sure it’s related to license issue

Thanks for the info - will gonna create a container without giving a license and will upload it afterwards

Edit: Unfortunately I'm getting the same error

image

sschuh commented 1 month ago

Same issue here...

It worked fine on Monday... (with developer license)

ChrisBlankDe commented 1 month ago

same issue here

Last successfully image creation on our build system was Monday 13:00Z (with de localization) and fails since Monday 15:00Z (with base localization)

New-BcContainer Splat: {"shortcuts":"None","restart":"on-failure","includeTestToolkit":true,"containerName":"navserver-44627","includeTestLibrariesOnly":true,"Credential":{"UserName":"admin","Password":{"Length":9}},"doNotCheckHealth":true,"doNotExportObjectsToText":true,"additionalParameters":["-e HttpSite=n","-v  C:\\a\\1:C:\\a\\1","-v  C:\\a\\_temp:C:\\a\\_temp"],"accept_eula":true,"accept_insiderEULA":true,"artifactUrl":"https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.3.21374.21827/base","alwaysPull":false,"accept_outdated":true,"auth":"NavUserPassword","imageName":"***/bc","licenseFile":null,"updateHosts":true}

2024-07-17T11:35:14.6560883Z BcContainerHelper is version 6.0.19
2024-07-17T11:35:14.6570700Z BcContainerHelper is running as administrator
2024-07-17T11:35:15.3084286Z HyperV is Enabled
2024-07-17T11:35:15.3108677Z Host is Microsoft Windows Server 2022 Datacenter Azure Edition - 10.0.20348.2582
2024-07-17T11:35:15.3117856Z UsePsSession is False
2024-07-17T11:35:15.3140928Z UsePwshForBc24 is True
2024-07-17T11:35:15.3149662Z UseWinRmSession is allow
2024-07-17T11:35:15.3181873Z UseSslForWinRmSession is True
2024-07-17T11:35:15.4468124Z Docker Client Version is 27.0.3
2024-07-17T11:35:15.4477748Z Docker Server Version is 27.0.3
2024-07-17T11:35:15.7228707Z Removing Desktop shortcuts
2024-07-17T11:35:16.1215153Z Fetching all docker images
2024-07-17T11:35:16.1873212Z Fetching all docker volumes
2024-07-17T11:35:16.2515455Z ArtifactUrl and ImageName specified
2024-07-17T11:35:16.7229324Z Building multitenant image ***/bc:sandbox-24.3.21374.21827-base-mt based on mcr.microsoft.com/businesscentral:ltsc2022 with https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.3.21374.21827/base
2024-07-17T11:35:16.7239168Z Pulling latest image mcr.microsoft.com/businesscentral:ltsc2022
2024-07-17T11:35:16.9797763Z ltsc2022: Pulling from businesscentral
2024-07-17T11:35:16.9867446Z Digest: sha256:c3f4032b6b82ae3c5bcb0a2d15e7d24ba53097f3e7a9c8266163a591fb9ace39
2024-07-17T11:35:16.9878079Z Status: Image is up to date for mcr.microsoft.com/businesscentral:ltsc2022
2024-07-17T11:35:16.9949482Z mcr.microsoft.com/businesscentral:ltsc2022
2024-07-17T11:35:17.0815697Z Generic Tag: 1.0.2.38
2024-07-17T11:35:17.1911477Z Container OS Version: 10.0.20348.2529 (ltsc2022)
2024-07-17T11:35:17.1921991Z Host OS Version: 10.0.20348.2582 (ltsc2022)
2024-07-17T11:35:17.1954580Z WARNING: Container and host OS build is 20348 or above, defaulting to process isolation. If you encounter issues, you could try to install HyperV.
2024-07-17T11:35:17.1963490Z Using process isolation
2024-07-17T11:35:17.2046260Z Files in c:\bcartifacts.cache\puzbqazs.43b\my:
2024-07-17T11:35:17.2090991Z Copying Platform Artifacts
2024-07-17T11:35:17.2146837Z c:\bcartifacts.cache\sandbox\24.3.21374.21827\platform
2024-07-17T11:35:50.1534074Z Copying Database
2024-07-17T11:36:06.6559302Z Copying Licensefile
2024-07-17T11:36:06.8032175Z c:\bcartifacts.cache\puzbqazs.43b
2024-07-17T11:36:25.3751979Z Sending build context to Docker daemon  2.284GB
2024-07-17T11:36:26.3804130Z 
2024-07-17T11:36:26.3804814Z Step 1/6 : FROM mcr.microsoft.com/businesscentral:ltsc2022
2024-07-17T11:36:26.3805659Z  ---> 44a20f8c96b0
2024-07-17T11:36:26.3806420Z Step 2/6 : ENV DatabaseServer=localhost DatabaseInstance=SQLEXPRESS DatabaseName=CRONUS IsBcSandbox=Y artifactUrl=https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.3.21374.21827/base filesOnly=False
2024-07-17T11:36:27.5052724Z  ---> Running in c76c2fcb9bd9
2024-07-17T11:36:29.4320351Z  ---> Removed intermediate container c76c2fcb9bd9
2024-07-17T11:36:29.4320904Z  ---> 7b455b851df8
2024-07-17T11:36:29.4321249Z Step 3/6 : COPY my /run/
2024-07-17T11:36:30.3047737Z  ---> 38e8c02ab71d
2024-07-17T11:36:30.3058755Z Step 4/6 : COPY NAVDVD /NAVDVD/
2024-07-17T11:37:49.1734183Z  ---> f1df83e91688
2024-07-17T11:37:49.1749839Z Step 5/6 : RUN \Run\start.ps1 -installOnly -multitenant -includeTestToolkit -includeTestLibrariesOnly
2024-07-17T11:37:49.4964466Z  ---> Running in 8b4f9d0a7ebc
2024-07-17T11:38:57.8842039Z c:\run\my folder doesn't exist, creating it
2024-07-17T11:39:07.2799137Z Using DVD installer from C:\Run\240
2024-07-17T11:39:07.8131296Z Installing Business Central: multitenant=True, installOnly=True, filesOnly=False, includeTestToolkit=True, includeTestLibrariesOnly=True, includeTestFrameworkOnly=False, includePerformanceToolkit=False, appArtifactPath=, platformArtifactPath=, databasePath=, licenseFilePath=, rebootContainer=False
2024-07-17T11:39:07.8368224Z Installing from DVD
2024-07-17T11:39:07.9993763Z Starting Local SQL Server
2024-07-17T11:39:28.1842957Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to 
2024-07-17T11:39:28.1848781Z start...
2024-07-17T11:39:30.2372886Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to 
2024-07-17T11:39:30.2385420Z start...
2024-07-17T11:39:32.3504948Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to 
2024-07-17T11:39:32.3518435Z start...
2024-07-17T11:39:34.4574504Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to 
2024-07-17T11:39:34.4584509Z start...
2024-07-17T11:39:36.5442352Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to 
2024-07-17T11:39:36.5454428Z start...
2024-07-17T11:39:38.6400961Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to 
2024-07-17T11:39:38.6409468Z start...
2024-07-17T11:39:40.7514254Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to 
2024-07-17T11:39:40.7530479Z start...
2024-07-17T11:39:42.8195573Z WARNING: Waiting for service 'SQL Server (SQLEXPRESS) (MSSQL$SQLEXPRESS)' to 
2024-07-17T11:39:42.8205892Z start...
2024-07-17T11:39:43.6163210Z Starting Internet Information Server
2024-07-17T11:39:44.3007030Z Copying Service Tier Files
2024-07-17T11:39:44.3286072Z C:\NAVDVD\ServiceTier\Program Files
2024-07-17T11:39:49.6870273Z C:\NAVDVD\ServiceTier\System64Folder
2024-07-17T11:39:50.3003416Z Copying Web Client Files
2024-07-17T11:39:50.3015709Z C:\NAVDVD\WebClient\Microsoft Dynamics NAV
2024-07-17T11:39:56.0363638Z Copying ModernDev Files
2024-07-17T11:39:56.0375180Z C:\NAVDVD
2024-07-17T11:39:56.0597861Z C:\NAVDVD\ModernDev\program files\Microsoft Dynamics NAV
2024-07-17T11:39:57.6946088Z Copying additional files
2024-07-17T11:39:57.6960060Z Copying ConfigurationPackages
2024-07-17T11:39:57.6970349Z C:\NAVDVD\ConfigurationPackages
2024-07-17T11:39:57.7265316Z Copying Test Assemblies
2024-07-17T11:39:57.7273328Z C:\NAVDVD\Test Assemblies
2024-07-17T11:39:57.7808198Z Copying Applications
2024-07-17T11:39:57.7816870Z C:\NAVDVD\Applications
2024-07-17T11:40:02.0050254Z Copying dependencies
2024-07-17T11:40:02.1179235Z Importing PowerShell Modules
2024-07-17T11:40:20.4186143Z Restoring CRONUS Demo Database
2024-07-17T11:40:53.2219419Z Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS
2024-07-17T11:40:55.9348871Z Exporting Application to CRONUS
2024-07-17T11:41:22.7586898Z Removing Application from tenant
2024-07-17T11:41:27.3246209Z Modifying Business Central Service Tier Config File for Docker
2024-07-17T11:41:27.4560535Z Creating Business Central Service Tier
2024-07-17T11:41:27.6293938Z Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
2024-07-17T11:41:28.0726870Z C:\Applications\TestFramework\TestLibraries\permissions mock\Microsoft_Permissions Mock.app
2024-07-17T11:41:28.0744866Z C:\Applications\TestFramework\TestRunner\Microsoft_Test Runner.app
2024-07-17T11:41:28.0754400Z C:\Applications\TestFramework\TestLibraries\any\Microsoft_Any.app
2024-07-17T11:41:28.0765449Z C:\Applications\TestFramework\TestLibraries\assert\Microsoft_Library Assert.app
2024-07-17T11:41:28.0775651Z C:\Applications\TestFramework\TestLibraries\permissions mock\Microsoft_Permissions Mock.app
2024-07-17T11:41:28.0787872Z C:\Applications\TestFramework\TestLibraries\variable storage\Microsoft_Library Variable Storage.app
2024-07-17T11:41:28.0801598Z C:\Applications\System Application\Test\Microsoft_System Application Test Library.app
2024-07-17T11:41:28.0813421Z C:\Applications\BusinessFoundation\Test\Microsoft_Business Foundation Test Libraries.app
2024-07-17T11:41:28.0819998Z C:\Applications\BaseApp\Test\Microsoft_Tests-TestLibraries.app
2024-07-17T11:41:28.0831896Z Starting Business Central Service Tier
2024-07-17T11:42:18.7118905Z Importing CRONUS license file
2024-07-17T11:42:25.7615401Z Copying Database on localhost\SQLEXPRESS from tenant to default
2024-07-17T11:42:25.7648187Z Taking database tenant offline
2024-07-17T11:42:26.5843447Z Copying database files
2024-07-17T11:42:28.7407378Z Attaching files as new Database default
2024-07-17T11:42:32.0411932Z Putting database tenant back online
2024-07-17T11:42:32.2039239Z Mounting tenant database
2024-07-17T11:42:32.2238701Z Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
2024-07-17T11:46:33.1794368Z Sync'ing Tenant
2024-07-17T11:46:38.3313713Z Tenant is Operational
2024-07-17T11:46:41.6937909Z Skipping Permissions Mock as it is already installed
2024-07-17T11:46:43.8672618Z Skipping Test Runner as it is already installed
2024-07-17T11:46:46.2124751Z Publishing C:\Applications\TestFramework\TestLibraries\any\Microsoft_Any.app
2024-07-17T11:46:49.9730890Z Synchronizing Any
2024-07-17T11:46:52.7690087Z Installing Any
2024-07-17T11:47:32.4278759Z Publishing C:\Applications\TestFramework\TestLibraries\assert\Microsoft_Library Assert.app
2024-07-17T11:47:34.5828563Z Synchronizing Library Assert
2024-07-17T11:47:37.1207061Z Installing Library Assert
2024-07-17T11:47:40.5519965Z Skipping Permissions Mock as it is already installed
2024-07-17T11:47:42.6880703Z Publishing C:\Applications\TestFramework\TestLibraries\variable storage\Microsoft_Library Variable Storage.app
2024-07-17T11:47:44.1949925Z Synchronizing Library Variable Storage
2024-07-17T11:47:47.3655354Z Installing Library Variable Storage
2024-07-17T11:47:51.4074668Z Publishing C:\Applications\System Application\Test\Microsoft_System Application Test Library.app
2024-07-17T11:49:05.7820802Z Synchronizing System Application Test Library
2024-07-17T11:49:09.1252080Z Installing System Application Test Library
2024-07-17T11:49:15.0806186Z Publishing C:\Applications\BusinessFoundation\Test\Microsoft_Business Foundation Test Libraries.app
2024-07-17T11:49:16.3897249Z Synchronizing Business Foundation Test Libraries
2024-07-17T11:49:18.8131376Z Installing Business Foundation Test Libraries
2024-07-17T11:49:22.7902354Z Publishing C:\Applications\BaseApp\Test\Microsoft_Tests-TestLibraries.app
2024-07-17T11:49:53.2926588Z Synchronizing Tests-TestLibraries
2024-07-17T11:49:57.3424391Z Installing Tests-TestLibraries
2024-07-17T11:50:02.3617196Z Stopping Business Central Service Tier
2024-07-17T11:50:02.7814633Z Installation took 655 seconds
2024-07-17T11:50:02.7863783Z Installation complete
2024-07-17T11:52:20.8538192Z New-Bcimage Telemetry Correlation Id: 551657dd-aac2-410d-93b6-a7bbcf36b0c0
2024-07-17T11:52:21.2595112Z New-BcContainer Telemetry Correlation Id: 74490154-0f20-4d77-babe-e0333732f65d
2024-07-17T11:52:21.3825023Z DockerDo : re-exec error: exit status 1: output: hcsshim::ImportLayer failed in Win32: The system cannot find the path 
2024-07-17T11:52:21.3825507Z specified. (0x3)
2024-07-17T11:52:21.3830893Z ExitCode: 1
2024-07-17T11:52:21.3831857Z Commandline: docker build --isolation=process --memory 8G --no-cache --tag 
2024-07-17T11:52:21.3832757Z ***/bc:sandbox-24.3.21374.21827-base-mt c:\bcartifacts.cache\puzbqazs.43b
2024-07-17T11:52:21.3833605Z At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\6.0.19\ContainerHandling\New-NavImage.ps1:711 char:27
2024-07-17T11:52:21.3834577Z + ...       if (!(DockerDo -command build -parameters @("--isolation=$isola ...
2024-07-17T11:52:21.3835637Z +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2024-07-17T11:52:21.3836310Z     + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
2024-07-17T11:52:21.3836860Z     + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,DockerDo
2024-07-17T11:52:21.3837321Z  
sschuh commented 1 month ago

I tried it with PowerShell 7. Seems to work fine.

New-BCContainer `
    -accept_eula `
    -accept_insiderEula `
    -auth NavUserPassword `
    -credential $credential `
    -containerName $settings.name `
    -artifactUrl $settings.artifactUrl `
    -imageName $settings.name `
    -memoryLimit $settings.memoryLimit `
    -shortcuts Desktop `
    -licenseFile $settings.licenseFilePath `
    -updateHosts `
    -useBestContainerOS `
    -isolation hyperv `
    -includeTestToolkit `
    -assignPremiumPlan `
    -EnableTaskScheduler:$false;

BcContainerHelper version 6.0.20-preview1214
BC.HelperFunctions emits usage statistics telemetry to Microsoft
Running on Windows, PowerShell 7.4.3
BcContainerHelper is version 6.0.20-preview1214
BcContainerHelper is not running as administrator
Host is Microsoft Windows 11 Enterprise - 10.0.22631.3296
UsePsSession is True
UsePwshForBc24 is True
UseWinRmSession is allow
UseSslForWinRmSession is True
Docker Client Version is 27.0.3
Docker Server Version is 27.0.3
Removing Desktop shortcuts
Fetching all docker images
Fetching all docker volumes
ArtifactUrl and ImageName specified
Fetching all docker images
Building multitenant image bc24-ses:sandbox-24.3.21374.21951-de-mt based on mcr.microsoft.com/businesscentral:ltsc2022-dev with https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.3.21374.21951/de
Pulling latest image mcr.microsoft.com/businesscentral:ltsc2022-dev
ltsc2022-dev: Pulling from businesscentral
7c76e5cf7755: Pulling fs layer
eb373ec9afdf: Pulling fs layer
8426b23d3e64: Pulling fs layer
54d1653c74b4: Pulling fs layer
b98a95db17cd: Pulling fs layer
1b31cad5cb0d: Pulling fs layer
4ad93726e149: Pulling fs layer
54d1653c74b4: Waiting
b98a95db17cd: Waiting
fc7ce74e2e1a: Pulling fs layer
1b31cad5cb0d: Waiting
4ad93726e149: Waiting
8fb101093017: Pulling fs layer
fc7ce74e2e1a: Waiting
8fb101093017: Waiting
2e14abbb50cf: Pulling fs layer
2e14abbb50cf: Waiting
da278fa84803: Pulling fs layer
5922f2633c32: Pulling fs layer
da278fa84803: Waiting
77321eca4b1d: Pulling fs layer
77321eca4b1d: Waiting
921be6f5748c: Pulling fs layer
921be6f5748c: Waiting
8426b23d3e64: Verifying Checksum
8426b23d3e64: Download complete
54d1653c74b4: Verifying Checksum
54d1653c74b4: Download complete
b98a95db17cd: Verifying Checksum
b98a95db17cd: Download complete
1b31cad5cb0d: Verifying Checksum
1b31cad5cb0d: Download complete
4ad93726e149: Verifying Checksum
4ad93726e149: Download complete
fc7ce74e2e1a: Verifying Checksum
fc7ce74e2e1a: Download complete
eb373ec9afdf: Verifying Checksum
eb373ec9afdf: Download complete
2e14abbb50cf: Verifying Checksum
2e14abbb50cf: Download complete
da278fa84803: Verifying Checksum
da278fa84803: Download complete
5922f2633c32: Verifying Checksum
5922f2633c32: Download complete
77321eca4b1d: Verifying Checksum
77321eca4b1d: Download complete
921be6f5748c: Verifying Checksum
921be6f5748c: Download complete
7c76e5cf7755: Verifying Checksum
7c76e5cf7755: Download complete
7c76e5cf7755: Pull complete
eb373ec9afdf: Pull complete
8426b23d3e64: Pull complete
54d1653c74b4: Pull complete
b98a95db17cd: Pull complete
1b31cad5cb0d: Pull complete
4ad93726e149: Pull complete
fc7ce74e2e1a: Pull complete
8fb101093017: Verifying Checksum
8fb101093017: Download complete
8fb101093017: Pull complete
2e14abbb50cf: Pull complete
da278fa84803: Pull complete
5922f2633c32: Pull complete
77321eca4b1d: Pull complete
921be6f5748c: Pull complete
Digest: sha256:c3f4032b6b82ae3c5bcb0a2d15e7d24ba53097f3e7a9c8266163a591fb9ace39
Status: Downloaded newer image for mcr.microsoft.com/businesscentral:ltsc2022-dev
mcr.microsoft.com/businesscentral:ltsc2022-dev
Generic Tag: 1.0.2.38
Container OS Version: 10.0.20348.2529 (ltsc2022)
Host OS Version: 10.0.22631.3296 (23H2)
Using hyperv isolation
Using license file license.bclicense
Files in c:\bcartifacts.cache\bk2f0v0f.iny\my:
Copying Platform Artifacts
c:\bcartifacts.cache\sandbox\24.3.21374.21951\platform
Copying Database
Copying Licensefile
Copying ConfigurationPackages
C:\bcartifacts.cache\sandbox\24.3.21374.21951\de\ConfigurationPackages
Copying Extensions
C:\bcartifacts.cache\sandbox\24.3.21374.21951\de\Extensions
Copying Applications.DE
C:\bcartifacts.cache\sandbox\24.3.21374.21951\de\Applications.DE
c:\bcartifacts.cache\bk2f0v0f.iny
Sending build context to Docker daemon  2.802GB

Step 1/6 : FROM mcr.microsoft.com/businesscentral:ltsc2022-dev
 ---> 44a20f8c96b0
Step 2/6 : ENV DatabaseServer=localhost DatabaseInstance=SQLEXPRESS DatabaseName=CRONUS IsBcSandbox=Y artifactUrl=https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.3.21374.21951/de filesOnly=False
 ---> Running in 18e4ab54ee16
 ---> Removed intermediate container 18e4ab54ee16
 ---> e9e7159dbb80
Step 3/6 : COPY my /run/
 ---> 889f5d884c92
Step 4/6 : COPY NAVDVD /NAVDVD/
 ---> f3c9f0ce1dff
Step 5/6 : RUN \Run\start.ps1 -installOnly -multitenant -includeTestToolkit
 ---> Running in 05e132b891ed
c:\run\my folder doesn't exist, creating it
Using DVD installer from C:\Run\240
Installing Business Central: multitenant=True, installOnly=True, filesOnly=False, includeTestToolkit=True, includeTestLibrariesOnly=False, includeTestFrameworkOnly=False, includePerformanceToolkit=False, appArtifactPath=, platformArtifactPath=, databasePath=, licenseFilePath=, rebootContainer=False
Installing from DVD
Starting Local SQL Server
Starting Internet Information Server
Copying Service Tier Files
C:\NAVDVD\ServiceTier\Program Files
C:\NAVDVD\ServiceTier\System64Folder
Copying Web Client Files
C:\NAVDVD\WebClient\Microsoft Dynamics NAV
Copying ModernDev Files
C:\NAVDVD
C:\NAVDVD\ModernDev\program files\Microsoft Dynamics NAV
Copying additional files
Copying ConfigurationPackages
C:\NAVDVD\ConfigurationPackages
Copying Test Assemblies
C:\NAVDVD\Test Assemblies
Copying Extensions
C:\NAVDVD\Extensions
Copying Applications
C:\NAVDVD\Applications
Copying Applications.DE
C:\NAVDVD\Applications.DE
Copying dependencies
Importing PowerShell Modules
Restoring CRONUS Demo Database
Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS
Exporting Application to CRONUS
Removing Application from tenant
Modifying Business Central Service Tier Config File for Docker
Creating Business Central Service Tier
Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
C:\Applications.DE\Microsoft_Permissions Mock_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Test Runner_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Any_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Library Assert_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Permissions Mock_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Library Variable Storage_24.3.21374.21951.app
C:\Applications.DE\Microsoft_System Application Test Library_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Business Foundation Test Libraries_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-TestLibraries_24.3.21374.21951.app
C:\Applications\System Application\Test\Microsoft_System Application Test.app
C:\Applications\BusinessFoundation\Test\Microsoft_Business Foundation Tests.app
C:\Applications.DE\Microsoft_Tests-Bank_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Cash Flow_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Cost Accounting_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-CRM integration_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Data Exchange_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Dimension_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-ERM_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Fixed Asset_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-General Journal_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Graph_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Integration_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Invoicing_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Job_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Local_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Marketing_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Misc_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Monitor Sensitive Fields_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Permissions_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Physical Inventory_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Prepayment_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Rapid Start_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Report_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Resource_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Reverse_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-SCM_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-SMB_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Upgrade_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-User_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-VAT_24.3.21374.21951.app
C:\Applications.DE\Microsoft_Tests-Workflow_24.3.21374.21951.app
Starting Business Central Service Tier
Importing CRONUS license file
Copying Database on localhost\SQLEXPRESS from tenant to default
Taking database tenant offline
Copying database files
Attaching files as new Database default
Putting database tenant back online
Mounting tenant database
Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
Sync'ing Tenant
Tenant is Operational
Permissions Mock is already published
Synchronizing Permissions Mock
Installing Permissions Mock
Test Runner is already published
Synchronizing Test Runner
Installing Test Runner
Any is already published
Synchronizing Any
Installing Any
Library Assert is already published
Synchronizing Library Assert
Installing Library Assert
Skipping Permissions Mock as it is already installed
Library Variable Storage is already published
Synchronizing Library Variable Storage
Installing Library Variable Storage
Publishing C:\Applications.DE\Microsoft_System Application Test Library_24.3.21374.21951.app
Synchronizing System Application Test Library
Installing System Application Test Library
Publishing C:\Applications.DE\Microsoft_Business Foundation Test Libraries_24.3.21374.21951.app
Synchronizing Business Foundation Test Libraries
Installing Business Foundation Test Libraries
Publishing C:\Applications.DE\Microsoft_Tests-TestLibraries_24.3.21374.21951.app
Synchronizing Tests-TestLibraries
Installing Tests-TestLibraries
Publishing C:\Applications\System Application\Test\Microsoft_System Application Test.app
Synchronizing System Application Test
Installing System Application Test
Publishing C:\Applications\BusinessFoundation\Test\Microsoft_Business Foundation Tests.app
Synchronizing Business Foundation Tests
Installing Business Foundation Tests
Publishing C:\Applications.DE\Microsoft_Tests-Bank_24.3.21374.21951.app
Synchronizing Tests-Bank
Installing Tests-Bank
Publishing C:\Applications.DE\Microsoft_Tests-Cash Flow_24.3.21374.21951.app
Synchronizing Tests-Cash Flow
Installing Tests-Cash Flow
Publishing C:\Applications.DE\Microsoft_Tests-Cost Accounting_24.3.21374.21951.app
Synchronizing Tests-Cost Accounting
Installing Tests-Cost Accounting
Publishing C:\Applications.DE\Microsoft_Tests-CRM integration_24.3.21374.21951.app
Synchronizing Tests-CRM integration
Installing Tests-CRM integration
Publishing C:\Applications.DE\Microsoft_Tests-Data Exchange_24.3.21374.21951.app
Synchronizing Tests-Data Exchange
Installing Tests-Data Exchange
Publishing C:\Applications.DE\Microsoft_Tests-Dimension_24.3.21374.21951.app
Synchronizing Tests-Dimension
Installing Tests-Dimension
Publishing C:\Applications.DE\Microsoft_Tests-ERM_24.3.21374.21951.app
Synchronizing Tests-ERM
Installing Tests-ERM
Publishing C:\Applications.DE\Microsoft_Tests-Fixed Asset_24.3.21374.21951.app
Synchronizing Tests-Fixed Asset
Installing Tests-Fixed Asset
Publishing C:\Applications.DE\Microsoft_Tests-General Journal_24.3.21374.21951.app
Synchronizing Tests-General Journal
Installing Tests-General Journal
Publishing C:\Applications.DE\Microsoft_Tests-Graph_24.3.21374.21951.app
Synchronizing Tests-Graph
Installing Tests-Graph
Publishing C:\Applications.DE\Microsoft_Tests-Integration_24.3.21374.21951.app
Synchronizing Tests-Integration
Installing Tests-Integration
Publishing C:\Applications.DE\Microsoft_Tests-Invoicing_24.3.21374.21951.app
Synchronizing Tests-Invoicing
Installing Tests-Invoicing
Publishing C:\Applications.DE\Microsoft_Tests-Job_24.3.21374.21951.app
Synchronizing Tests-Job
Installing Tests-Job
Publishing C:\Applications.DE\Microsoft_Tests-Local_24.3.21374.21951.app
Synchronizing Tests-Local
Installing Tests-Local
Publishing C:\Applications.DE\Microsoft_Tests-Marketing_24.3.21374.21951.app
Synchronizing Tests-Marketing
Installing Tests-Marketing
Publishing C:\Applications.DE\Microsoft_Tests-Misc_24.3.21374.21951.app
Synchronizing Tests-Misc
Installing Tests-Misc
Publishing C:\Applications.DE\Microsoft_Tests-Monitor Sensitive Fields_24.3.21374.21951.app
Synchronizing Tests-Monitor Sensitive Fields
Installing Tests-Monitor Sensitive Fields
Publishing C:\Applications.DE\Microsoft_Tests-Permissions_24.3.21374.21951.app
Synchronizing Tests-Permissions
Installing Tests-Permissions
Publishing C:\Applications.DE\Microsoft_Tests-Physical Inventory_24.3.21374.21951.app
Synchronizing Tests-Physical Inventory
Installing Tests-Physical Inventory
Publishing C:\Applications.DE\Microsoft_Tests-Prepayment_24.3.21374.21951.app
Synchronizing Tests-Prepayment
Installing Tests-Prepayment
Publishing C:\Applications.DE\Microsoft_Tests-Rapid Start_24.3.21374.21951.app
Synchronizing Tests-Rapid Start
Installing Tests-Rapid Start
Publishing C:\Applications.DE\Microsoft_Tests-Report_24.3.21374.21951.app
Synchronizing Tests-Report
Installing Tests-Report
Publishing C:\Applications.DE\Microsoft_Tests-Resource_24.3.21374.21951.app
Synchronizing Tests-Resource
Installing Tests-Resource
Publishing C:\Applications.DE\Microsoft_Tests-Reverse_24.3.21374.21951.app
Synchronizing Tests-Reverse
Installing Tests-Reverse
Publishing C:\Applications.DE\Microsoft_Tests-SCM_24.3.21374.21951.app
Synchronizing Tests-SCM
Installing Tests-SCM
Publishing C:\Applications.DE\Microsoft_Tests-SMB_24.3.21374.21951.app
Synchronizing Tests-SMB
Installing Tests-SMB
Publishing C:\Applications.DE\Microsoft_Tests-Upgrade_24.3.21374.21951.app
Synchronizing Tests-Upgrade
Installing Tests-Upgrade
Publishing C:\Applications.DE\Microsoft_Tests-User_24.3.21374.21951.app
Synchronizing Tests-User
Installing Tests-User
Publishing C:\Applications.DE\Microsoft_Tests-VAT_24.3.21374.21951.app
Synchronizing Tests-VAT
Installing Tests-VAT
Publishing C:\Applications.DE\Microsoft_Tests-Workflow_24.3.21374.21951.app
Synchronizing Tests-Workflow
Installing Tests-Workflow
Stopping Business Central Service Tier
Installation took 963 seconds
Installation complete
 ---> Removed intermediate container 05e132b891ed
 ---> e19d2559c4f1
Step 6/6 : LABEL legal="http://go.microsoft.com/fwlink/?LinkId=837447"       created="202407171211"       nav=""       cu=""       multitenant="Y"       country="DE"       version="24.3.21374.21951"       platform="24.0.21889.0"
 ---> Running in 3dcd59b4e37c
 ---> Removed intermediate container 3dcd59b4e37c
 ---> 04ae3afebd7a
Successfully built 04ae3afebd7a
Successfully tagged bc24-ses:sandbox-24.3.21374.21951-de-mt
Building image took 2049 seconds
Using image bc24-ses:sandbox-24.3.21374.21951-de-mt
Creating Container bc24-ses
Style: sandbox
Multitenant: Yes
Version: 24.3.21374.21951
Platform: 24.0.21889.0
Generic Tag: 1.0.2.38
Container OS Version: 10.0.20348.2529 (ltsc2022)
Host OS Version: 10.0.22631.3296 (23H2)
Using hyperv isolation
Using locale de-DE
Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
Using license file license.bclicense
Additional Parameters:
--expose 5986
--env customNavSettings=EnableTaskScheduler=False
Files in C:\ProgramData\BcContainerHelper\Extensions\bc24-ses\my:
- AdditionalOutput.ps1
- AdditionalSetup.ps1
- HelperFunctions.ps1
- license.bclicense
- MainLoop.ps1
- SetupNavUsers.ps1
- SetupVariables.ps1
- updatehosts.ps1
Creating container bc24-ses from image bc24-ses:sandbox-24.3.21374.21951-de-mt
0b38008a0a4fb681495423e08af4c9d7b237c2006368f907cd7367ef09aadb1e
Waiting for container bc24-ses to be ready
Initializing...
Setting host.docker.internal to 192.168.0.32 in container hosts file (copy from host hosts file)
Setting gateway.docker.internal to 192.168.0.32 in container hosts file (copy from host hosts file)
Setting kubernetes.docker.internal to 127.0.0.1 in container hosts file (copy from host hosts file)
Setting host.containerhelper.internal to 172.19.64.1 in container hosts file
Starting Container
Hostname is bc24-ses
PublicDnsName is bc24-ses
WARNING: Container starts with TimeZone = Mitteleuropäische Zeit, which is not recognized in the list of TimeZones.
Using NavUserPassword Authentication
Starting Local SQL Server
Starting Internet Information Server
Creating Self Signed Certificate
Self Signed Certificate Thumbprint 1F26216AF188269EDD54568E689DF8593D9EC635
DNS identity bc24-ses
Modifying Service Tier Config File with Instance Specific Settings
Modifying Service Tier Config File with settings from environment variable
Setting EnableTaskScheduler to False
Starting Service Tier
Registering event sources
Creating DotNetCore Web Server Instance
Using application pool name: BC
Using default container name: NavWebApplicationContainer
Copy files to WWW root C:\inetpub\wwwroot\BC
Create the application pool BC
Create website: NavWebApplicationContainer without SSL
Update configuration: navsettings.json
Done Configuring Web Client
Enabling Financials User Experience
Using license file 'c:\run\my\license.bclicense'
Import License
Dismounting Tenant
Mounting Tenant
Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
Sync'ing Tenant
Tenant is Operational
Creating http download site
Setting SA Password and enabling SA
Creating kuma as SQL User and add to sysadmin
Creating SUPER user
Assign Premium plan for KUMA
Enable PSRemoting and setup user for winrm
Creating self-signed certificate for winrm
Container IP Address: 172.19.76.55
Container Hostname  : bc24-ses
Container Dns Name  : bc24-ses
Web Client          : http://bc24-ses/BC/?tenant=default
Dev. Server         : http://bc24-ses
Dev. ServerInstance : BC
Dev. Server Tenant  : default
Setting bc24-ses to 172.19.76.55 in host hosts file
Setting bc24-ses-default to 172.19.76.55 in host hosts file
Setting bc24-ses-default to 172.19.76.55 in container hosts file

Files:
http://bc24-ses:8080/ALLanguage.vsix

Container Total Physical Memory is 8.5Gb
Container Free Physical Memory is 4.0Gb

Initialization took 112 seconds
Ready for connections!
Reading CustomSettings.config from bc24-ses
Creating Desktop Shortcuts for bc24-ses
Skipping app 'C:\Applications.DE\Microsoft_Permissions Mock_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Test Runner_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Any_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Library Assert_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Permissions Mock_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Library Variable Storage_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_System Application Test Library_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Business Foundation Test Libraries_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-TestLibraries_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications\System Application\Test\Microsoft_System Application Test.app' as it is already installed
Skipping app 'C:\Applications\BusinessFoundation\Test\Microsoft_Business Foundation Tests.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Bank_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Cash Flow_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Cost Accounting_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-CRM integration_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Data Exchange_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Dimension_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-ERM_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Fixed Asset_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-General Journal_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Graph_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Integration_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Invoicing_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Job_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Local_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Marketing_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Misc_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Monitor Sensitive Fields_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Permissions_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Physical Inventory_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Prepayment_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Rapid Start_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Report_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Resource_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Reverse_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-SCM_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-SMB_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Upgrade_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-User_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-VAT_24.3.21374.21951.app' as it is already installed
Skipping app 'C:\Applications.DE\Microsoft_Tests-Workflow_24.3.21374.21951.app' as it is already installed
TestToolkit successfully imported
Cleanup old dotnet core assemblies
Container bc24-ses successfully created

Use:
Get-BcContainerEventLog -containerName bc24-ses to retrieve a snapshot of the event log from the container
Get-BcContainerDebugInfo -containerName bc24-ses to get debug information about the container
Enter-BcContainer -containerName bc24-ses to open a PowerShell prompt inside the container
Remove-BcContainer -containerName bc24-ses to remove the container again
docker logs bc24-ses to retrieve information about URL's again
someC0d3r commented 1 month ago

Unfortunately it didn't work with PS7 for me. :-(

Output:

Docker: 27.0.3
BcContainerHelper: 6.0.19
PowerShell: 7.4.3
```powershell ---------------------------------------- New-BCContainer parameters: Name Value ---- ----- auth NavUserPassword assignPremiumPlan True isolation hyperv accept_eula True updateHosts True useBestContainerOS True artifactUrl https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.3.21374.21951/de EnableTaskScheduler False memoryLimit 8G shortcuts DesktopFolder includeTestToolkit True imageName bc243-de credential System.Management.Automation.PSCredential licenseFile License.bclicense containerName bc243-de ---------------------------------------- Proceed with creating a new container? (y/n): y BcContainerHelper version 6.0.19 BC.HelperFunctions emits usage statistics telemetry to Microsoft Running on Windows, PowerShell 7.4.3 BcContainerHelper is version 6.0.19 BcContainerHelper is not running as administrator Host is Microsoft Windows 11 Enterprise - 10.0.22631.3296 UsePsSession is True UsePwshForBc24 is True UseWinRmSession is allow UseSslForWinRmSession is True Docker Client Version is 27.0.3 Docker Server Version is 27.0.3 Removing Desktop shortcuts Fetching all docker images Fetching all docker volumes ArtifactUrl and ImageName specified Building multitenant image bc243-de:sandbox-24.3.21374.21951-de-mt based on mcr.microsoft.com/businesscentral:ltsc2022 with https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.3.21374.21951/de Pulling latest image mcr.microsoft.com/businesscentral:ltsc2022 ltsc2022: Pulling from businesscentral Digest: sha256:c3f4032b6b82ae3c5bcb0a2d15e7d24ba53097f3e7a9c8266163a591fb9ace39 Generic Tag: 1.0.2.38 Container OS Version: 10.0.20348.2529 (ltsc2022) Host OS Version: 10.0.22631.3296 (23H2) Using hyperv isolation Using license file License.bclicense Files in c:\bcartifacts.cache\qeb14d23.jgo\my: Copying Platform Artifacts c:\bcartifacts.cache\sandbox\24.3.21374.21951\platform Copying Database Copying Licensefile Copying ConfigurationPackages C:\bcartifacts.cache\sandbox\24.3.21374.21951\de\ConfigurationPackages Copying Extensions C:\bcartifacts.cache\sandbox\24.3.21374.21951\de\Extensions Copying Applications.DE C:\bcartifacts.cache\sandbox\24.3.21374.21951\de\Applications.DE c:\bcartifacts.cache\qeb14d23.jgo Sending build context to Docker daemon 2.802GB Step 1/6 : FROM mcr.microsoft.com/businesscentral:ltsc2022 ---> 44a20f8c96b0 Step 2/6 : ENV DatabaseServer=localhost DatabaseInstance=SQLEXPRESS DatabaseName=CRONUS IsBcSandbox=Y artifactUrl=https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.3.21374.21951/de filesOnly=False ---> Running in 4224fcf64caf ---> Removed intermediate container 4224fcf64caf ---> 5ed712c7d2fb Step 3/6 : COPY my /run/ ---> a343fbbcc76a Step 4/6 : COPY NAVDVD /NAVDVD/ ---> d0b8a9573581 Step 5/6 : RUN \Run\start.ps1 -installOnly -multitenant -includeTestToolkit ---> Running in 7fb600cd762d c:\run\my folder doesn't exist, creating it Using DVD installer from C:\Run\240 Installing Business Central: multitenant=True, installOnly=True, filesOnly=False, includeTestToolkit=True, includeTestLibrariesOnly=False, includeTestFrameworkOnly=False, includePerformanceToolkit=False, appArtifactPath=, platformArtifactPath=, databasePath=, licenseFilePath=, rebootContainer=False Installing from DVD Starting Local SQL Server Starting Internet Information Server Copying Service Tier Files C:\NAVDVD\ServiceTier\Program Files C:\NAVDVD\ServiceTier\System64Folder Copying Web Client Files C:\NAVDVD\WebClient\Microsoft Dynamics NAV Copying ModernDev Files C:\NAVDVD C:\NAVDVD\ModernDev\program files\Microsoft Dynamics NAV Copying additional files Copying ConfigurationPackages C:\NAVDVD\ConfigurationPackages Copying Test Assemblies C:\NAVDVD\Test Assemblies Copying Extensions C:\NAVDVD\Extensions Copying Applications C:\NAVDVD\Applications Copying Applications.DE C:\NAVDVD\Applications.DE Copying dependencies Importing PowerShell Modules Restoring CRONUS Demo Database Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS Exporting Application to CRONUS Removing Application from tenant Modifying Business Central Service Tier Config File for Docker Creating Business Central Service Tier Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll' C:\Applications.DE\Microsoft_Permissions Mock_24.3.21374.21951.app C:\Applications.DE\Microsoft_Test Runner_24.3.21374.21951.app C:\Applications.DE\Microsoft_Any_24.3.21374.21951.app C:\Applications.DE\Microsoft_Library Assert_24.3.21374.21951.app C:\Applications.DE\Microsoft_Permissions Mock_24.3.21374.21951.app C:\Applications.DE\Microsoft_Library Variable Storage_24.3.21374.21951.app C:\Applications.DE\Microsoft_System Application Test Library_24.3.21374.21951.app C:\Applications.DE\Microsoft_Business Foundation Test Libraries_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-TestLibraries_24.3.21374.21951.app C:\Applications\System Application\Test\Microsoft_System Application Test.app C:\Applications\BusinessFoundation\Test\Microsoft_Business Foundation Tests.app C:\Applications.DE\Microsoft_Tests-Bank_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Cash Flow_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Cost Accounting_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-CRM integration_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Data Exchange_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Dimension_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-ERM_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Fixed Asset_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-General Journal_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Graph_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Integration_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Invoicing_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Job_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Local_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Marketing_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Misc_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Monitor Sensitive Fields_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Permissions_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Physical Inventory_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Prepayment_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Rapid Start_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Report_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Resource_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Reverse_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-SCM_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-SMB_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Upgrade_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-User_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-VAT_24.3.21374.21951.app C:\Applications.DE\Microsoft_Tests-Workflow_24.3.21374.21951.app Starting Business Central Service Tier Importing CRONUS license file Copying Database on localhost\SQLEXPRESS from tenant to default Taking database tenant offline Copying database files Attaching files as new Database default Putting database tenant back online Mounting tenant database Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False Sync'ing Tenant Tenant is Operational Permissions Mock is already published Synchronizing Permissions Mock Installing Permissions Mock Test Runner is already published Synchronizing Test Runner Installing Test Runner Any is already published Synchronizing Any Installing Any Library Assert is already published Synchronizing Library Assert Installing Library Assert Skipping Permissions Mock as it is already installed Library Variable Storage is already published Synchronizing Library Variable Storage Installing Library Variable Storage Publishing C:\Applications.DE\Microsoft_System Application Test Library_24.3.21374.21951.app Synchronizing System Application Test Library Installing System Application Test Library Publishing C:\Applications.DE\Microsoft_Business Foundation Test Libraries_24.3.21374.21951.app Synchronizing Business Foundation Test Libraries Installing Business Foundation Test Libraries Publishing C:\Applications.DE\Microsoft_Tests-TestLibraries_24.3.21374.21951.app Synchronizing Tests-TestLibraries Installing Tests-TestLibraries Publishing C:\Applications\System Application\Test\Microsoft_System Application Test.app Synchronizing System Application Test Installing System Application Test Publishing C:\Applications\BusinessFoundation\Test\Microsoft_Business Foundation Tests.app Synchronizing Business Foundation Tests Installing Business Foundation Tests Publishing C:\Applications.DE\Microsoft_Tests-Bank_24.3.21374.21951.app Synchronizing Tests-Bank Installing Tests-Bank Publishing C:\Applications.DE\Microsoft_Tests-Cash Flow_24.3.21374.21951.app Synchronizing Tests-Cash Flow Installing Tests-Cash Flow Publishing C:\Applications.DE\Microsoft_Tests-Cost Accounting_24.3.21374.21951.app Synchronizing Tests-Cost Accounting Installing Tests-Cost Accounting Publishing C:\Applications.DE\Microsoft_Tests-CRM integration_24.3.21374.21951.app Synchronizing Tests-CRM integration Installing Tests-CRM integration Publishing C:\Applications.DE\Microsoft_Tests-Data Exchange_24.3.21374.21951.app Synchronizing Tests-Data Exchange Installing Tests-Data Exchange Publishing C:\Applications.DE\Microsoft_Tests-Dimension_24.3.21374.21951.app Synchronizing Tests-Dimension Installing Tests-Dimension Publishing C:\Applications.DE\Microsoft_Tests-ERM_24.3.21374.21951.app Synchronizing Tests-ERM Installing Tests-ERM Publishing C:\Applications.DE\Microsoft_Tests-Fixed Asset_24.3.21374.21951.app Synchronizing Tests-Fixed Asset Installing Tests-Fixed Asset Publishing C:\Applications.DE\Microsoft_Tests-General Journal_24.3.21374.21951.app Synchronizing Tests-General Journal Installing Tests-General Journal Publishing C:\Applications.DE\Microsoft_Tests-Graph_24.3.21374.21951.app Synchronizing Tests-Graph Installing Tests-Graph Publishing C:\Applications.DE\Microsoft_Tests-Integration_24.3.21374.21951.app Synchronizing Tests-Integration Installing Tests-Integration Publishing C:\Applications.DE\Microsoft_Tests-Invoicing_24.3.21374.21951.app Synchronizing Tests-Invoicing Installing Tests-Invoicing Publishing C:\Applications.DE\Microsoft_Tests-Job_24.3.21374.21951.app Synchronizing Tests-Job Installing Tests-Job Publishing C:\Applications.DE\Microsoft_Tests-Local_24.3.21374.21951.app Synchronizing Tests-Local Installing Tests-Local Publishing C:\Applications.DE\Microsoft_Tests-Marketing_24.3.21374.21951.app Synchronizing Tests-Marketing Installing Tests-Marketing Publishing C:\Applications.DE\Microsoft_Tests-Misc_24.3.21374.21951.app Synchronizing Tests-Misc Installing Tests-Misc Publishing C:\Applications.DE\Microsoft_Tests-Monitor Sensitive Fields_24.3.21374.21951.app Synchronizing Tests-Monitor Sensitive Fields Installing Tests-Monitor Sensitive Fields Publishing C:\Applications.DE\Microsoft_Tests-Permissions_24.3.21374.21951.app Synchronizing Tests-Permissions Installing Tests-Permissions Publishing C:\Applications.DE\Microsoft_Tests-Physical Inventory_24.3.21374.21951.app Synchronizing Tests-Physical Inventory Installing Tests-Physical Inventory Publishing C:\Applications.DE\Microsoft_Tests-Prepayment_24.3.21374.21951.app Synchronizing Tests-Prepayment Installing Tests-Prepayment Publishing C:\Applications.DE\Microsoft_Tests-Rapid Start_24.3.21374.21951.app Synchronizing Tests-Rapid Start Installing Tests-Rapid Start Publishing C:\Applications.DE\Microsoft_Tests-Report_24.3.21374.21951.app Synchronizing Tests-Report Installing Tests-Report Publishing C:\Applications.DE\Microsoft_Tests-Resource_24.3.21374.21951.app Synchronizing Tests-Resource Installing Tests-Resource Publishing C:\Applications.DE\Microsoft_Tests-Reverse_24.3.21374.21951.app Synchronizing Tests-Reverse Installing Tests-Reverse Publishing C:\Applications.DE\Microsoft_Tests-SCM_24.3.21374.21951.app Synchronizing Tests-SCM Installing Tests-SCM Publishing C:\Applications.DE\Microsoft_Tests-SMB_24.3.21374.21951.app Synchronizing Tests-SMB Installing Tests-SMB Publishing C:\Applications.DE\Microsoft_Tests-Upgrade_24.3.21374.21951.app Synchronizing Tests-Upgrade Installing Tests-Upgrade Publishing C:\Applications.DE\Microsoft_Tests-User_24.3.21374.21951.app Synchronizing Tests-User Installing Tests-User Publishing C:\Applications.DE\Microsoft_Tests-VAT_24.3.21374.21951.app Synchronizing Tests-VAT Installing Tests-VAT Publishing C:\Applications.DE\Microsoft_Tests-Workflow_24.3.21374.21951.app Synchronizing Tests-Workflow Installing Tests-Workflow Stopping Business Central Service Tier Installation took 969 seconds Installation complete New-Bcimage Telemetry Correlation Id: 719ee37d-c289-4059-b9d0-9f1e8b8d216c New-BCContainer Telemetry Correlation Id: 18f7f5ea-b4d0-48a9-b836-7b9c9fcb5e5a An error occurred while creating the container: re-exec error: exit status 1: output: hcsshim::ImportLayer failed in Win32: The system cannot find the path specified. (0x3) ExitCode: 1 Commandline: docker build --isolation=hyperv --memory 8G --no-cache --tag bc243-de:sandbox-24.3.21374.21951-de-mt c:\bcartifacts.cache\qeb14d23.jgo Press any key to continue...: ```

I'll do another test and will remove the "imageName" parameter, some similiar issue apparently got resolved by doing this. See here: https://github.com/microsoft/navcontainerhelper/issues/3479#issuecomment-2045980470

Edit: When setting "imageName" to "" (empty) it seems to work:

image

Docker: 27.0.3
BcContainerHelper: 6.0.19
PowerShell: 5.1.22621.2506
Output ```powershell ---------------------------------------- New-BCContainer parameters: Name Value ---- ----- isolation hyperv memoryLimit 8G containerName bc243-de licenseFile License.bclicense shortcuts DesktopFolder credential System.Management.Automation.PSCredential updateHosts True useBestContainerOS True artifactUrl https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.3.21374.21951/de auth NavUserPassword assignPremiumPlan True imageName EnableTaskScheduler False includeTestToolkit True accept_eula True ---------------------------------------- Proceed with creating a new container? (y/n): y BcContainerHelper version 6.0.19 BC.HelperFunctions emits usage statistics telemetry to Microsoft Running on Windows, PowerShell 5.1.22621.2506 BcContainerHelper is version 6.0.19 BcContainerHelper is not running as administrator Host is Microsoft Windows 11 Enterprise - 10.0.22631.3296 UsePsSession is True UsePwshForBc24 is True UseWinRmSession is allow UseSslForWinRmSession is True Docker Client Version is 27.0.3 Docker Server Version is 27.0.3 Removing Desktop shortcuts Fetching all docker images Fetching all docker volumes Using image mcr.microsoft.com/businesscentral:ltsc2022 Creating Container bc243-de Style: sandbox Multitenant: Yes Version: 24.3.21374.21951 Platform: 24.0.21889.0 Generic Tag: 1.0.2.38 Container OS Version: 10.0.20348.2529 (ltsc2022) Host OS Version: 10.0.22631.3296 (23H2) Using hyperv isolation Using locale de-DE Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable) Using license file License.bclicense Additional Parameters: --expose 5986 --env customNavSettings=EnableTaskScheduler=False Files in C:\ProgramData\BcContainerHelper\Extensions\bc243-de\my: - AdditionalOutput.ps1 - AdditionalSetup.ps1 - HelperFunctions.ps1 - license.bclicense - MainLoop.ps1 - SetupNavUsers.ps1 - SetupVariables.ps1 - updatehosts.ps1 Creating container bc243-de from image mcr.microsoft.com/businesscentral:ltsc2022 89f2ebfbf7f401ab9440929cf0835c9a8a2cb3425de535a3742cd43fe294ebd3 Waiting for container bc243-de to be ready Using artifactUrl https://bcartifacts-exdbf9fwegejdqak.b02.azurefd.net/sandbox/24.3.21374.21951/de Using installer from C:\Run\240 Installing Business Central: multitenant=True, installOnly=False, filesOnly=False, includeTestToolkit=False, includeTestLibrariesOnly=False, includeTestFrameworkOnly=False, includePerformanceToolkit=False, appArtifactPath=c:\dl\sandbox\24.3.21374.21951\de, platformArtifactPath=c:\dl\sandbox\24.3.21374.21951\platform, databasePath=c:\dl\sandbox\24.3.21374.21951\de\BusinessCentral-DE.bak, licenseFilePath=c:\dl\sandbox\24.3.21374.21951\de\Cronus.bclicense, rebootContainer=True Installing from artifacts Starting Local SQL Server Starting Internet Information Server Copying Service Tier Files c:\dl\sandbox\24.3.21374.21951\platform\ServiceTier\Program Files c:\dl\sandbox\24.3.21374.21951\platform\ServiceTier\System64Folder Copying Web Client Files c:\dl\sandbox\24.3.21374.21951\platform\WebClient\Microsoft Dynamics NAV Copying ModernDev Files c:\dl\sandbox\24.3.21374.21951\platform c:\dl\sandbox\24.3.21374.21951\platform\ModernDev\program files\Microsoft Dynamics NAV Copying additional files Copying ConfigurationPackages C:\dl\sandbox\24.3.21374.21951\de\ConfigurationPackages Copying Test Assemblies C:\dl\sandbox\24.3.21374.21951\platform\Test Assemblies Copying Extensions C:\dl\sandbox\24.3.21374.21951\de\Extensions Copying Applications C:\dl\sandbox\24.3.21374.21951\platform\Applications Copying Applications.DE C:\dl\sandbox\24.3.21374.21951\de\Applications.DE Copying dependencies Importing PowerShell Modules Restoring CRONUS Demo Database Setting CompatibilityLevel for tenant on localhost\SQLEXPRESS Exporting Application to CRONUS Removing Application from tenant Modifying Business Central Service Tier Config File for Docker Creating Business Central Service Tier Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll' Starting Business Central Service Tier Importing license file Copying Database on localhost\SQLEXPRESS from tenant to default Taking database tenant offline Copying database files Attaching files as new Database default Putting database tenant back online Mounting tenant database Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False Sync'ing Tenant Tenant is Operational Stopping Business Central Service Tier Installation took 219 seconds Installation complete Initializing... Setting host.docker.internal to 192.168.2.127 in container hosts file (copy from host hosts file) Setting gateway.docker.internal to 192.168.2.127 in container hosts file (copy from host hosts file) Setting kubernetes.docker.internal to 127.0.0.1 in container hosts file (copy from host hosts file) Setting host.containerhelper.internal to 172.23.80.1 in container hosts file Starting Container Hostname is bc243-de PublicDnsName is bc243-de WARNING: Container starts with TimeZone = Mitteleuropäische Zeit, which is not recognized in the list of TimeZones. Using NavUserPassword Authentication Creating Self Signed Certificate Self Signed Certificate Thumbprint 0C72BB46472E2C05169DC0FED3D9646F50CB88B1 DNS identity bc243-de Modifying Service Tier Config File with Instance Specific Settings Modifying Service Tier Config File with settings from environment variable Setting EnableTaskScheduler to False Starting Service Tier Registering event sources Creating DotNetCore Web Server Instance Using application pool name: BC Using default container name: NavWebApplicationContainer Copy files to WWW root C:\inetpub\wwwroot\BC Create the application pool BC Create website: NavWebApplicationContainer without SSL Update configuration: navsettings.json Done Configuring Web Client Enabling Financials User Experience Using license file 'c:\run\my\license.bclicense' Import License Dismounting Tenant Mounting Tenant Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False Sync'ing Tenant Tenant is Operational Creating http download site Setting SA Password and enabling SA Creating ***** as SQL User and add to sysadmin Creating SUPER user Assign Premium plan for ***** Enable PSRemoting and setup user for winrm Creating self-signed certificate for winrm Container IP Address: 172.23.83.227 Container Hostname : bc243-de Container Dns Name : bc243-de Web Client : http://bc243-de/BC/?tenant=default Dev. Server : http://bc243-de Dev. ServerInstance : BC Dev. Server Tenant : default Setting bc243-de to 172.23.83.227 in host hosts file Setting bc243-de-default to 172.23.83.227 in host hosts file Setting bc243-de-default to 172.23.83.227 in container hosts file Files: http://bc243-de:8080/ALLanguage.vsix Container Total Physical Memory is 8.5Gb Container Free Physical Memory is 5.3Gb Initialization took 107 seconds Ready for connections! Reading CustomSettings.config from bc243-de Creating Desktop Shortcuts for bc243-de Synchronizing Permissions Mock on default App successfully synchronized Installing Permissions Mock on default App successfully installed Synchronizing Test Runner on default App successfully synchronized Installing Test Runner on default App successfully installed Synchronizing Any on default App successfully synchronized Installing Any on default App successfully installed Synchronizing Library Assert on default App successfully synchronized Installing Library Assert on default App successfully installed Skipping app 'C:\Applications.DE\Microsoft_Permissions Mock_24.3.21374.21951.app' as it is already installed Synchronizing Library Variable Storage on default App successfully synchronized Installing Library Variable Storage on default App successfully installed Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\399d6637-71eb-4c60-8915-b8b7e06c3a08\Microsoft_System Application Test Library_24.3.21374.21951.app Synchronizing System Application Test Library on tenant default Installing System Application Test Library on tenant default App Microsoft_System Application Test Library_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\e50f08a8-f633-4031-b5bf-8cede702d448\Microsoft_Business Foundation Test Libraries_24.3.21374.21951.app Synchronizing Business Foundation Test Libraries on tenant default Installing Business Foundation Test Libraries on tenant default App Microsoft_Business Foundation Test Libraries_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\538e0f41-39de-40e7-812c-3fab248afdda\Microsoft_Tests-TestLibraries_24.3.21374.21951.app Synchronizing Tests-TestLibraries on tenant default Installing Tests-TestLibraries on tenant default App Microsoft_Tests-TestLibraries_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\872fd758-4257-4cfe-b43b-1913ee7ed7f8\Microsoft_System Application Test.app Synchronizing System Application Test on tenant default Installing System Application Test on tenant default App Microsoft_System Application Test.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\61decc57-67a0-41a7-9178-b0a7cb36dc0b\Microsoft_Business Foundation Tests.app Synchronizing Business Foundation Tests on tenant default Installing Business Foundation Tests on tenant default App Microsoft_Business Foundation Tests.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\1ba9f4ad-123b-43a2-91de-86cb9d5b0d6d\Microsoft_Tests-Bank_24.3.21374.21951.app Synchronizing Tests-Bank on tenant default Installing Tests-Bank on tenant default App Microsoft_Tests-Bank_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\c9f466c6-eff7-42f6-a6a1-065baa862f8e\Microsoft_Tests-Cash Flow_24.3.21374.21951.app Synchronizing Tests-Cash Flow on tenant default Installing Tests-Cash Flow on tenant default App Microsoft_Tests-Cash Flow_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\ded3f74d-5752-4d3c-9ccd-085e964c1ef1\Microsoft_Tests-Cost Accounting_24.3.21374.21951.app Synchronizing Tests-Cost Accounting on tenant default Installing Tests-Cost Accounting on tenant default App Microsoft_Tests-Cost Accounting_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\5613cced-a72b-417d-bb44-2584c9b668c9\Microsoft_Tests-CRM integration_24.3.21374.21951.app Synchronizing Tests-CRM integration on tenant default Installing Tests-CRM integration on tenant default App Microsoft_Tests-CRM integration_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\c1b4d95b-0caf-4cc8-a7ed-ebc592d229b4\Microsoft_Tests-Data Exchange_24.3.21374.21951.app Synchronizing Tests-Data Exchange on tenant default Installing Tests-Data Exchange on tenant default App Microsoft_Tests-Data Exchange_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\d42f93dd-8371-4fe2-af62-ef67526cb4a0\Microsoft_Tests-Dimension_24.3.21374.21951.app Synchronizing Tests-Dimension on tenant default Installing Tests-Dimension on tenant default App Microsoft_Tests-Dimension_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\439b31c2-360a-4cfd-a4a1-aadaf7614993\Microsoft_Tests-ERM_24.3.21374.21951.app Synchronizing Tests-ERM on tenant default Installing Tests-ERM on tenant default App Microsoft_Tests-ERM_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\bcbf84c3-a260-4262-b712-0353c2b96ab6\Microsoft_Tests-Fixed Asset_24.3.21374.21951.app Synchronizing Tests-Fixed Asset on tenant default Installing Tests-Fixed Asset on tenant default App Microsoft_Tests-Fixed Asset_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\4770e1f3-9d1d-4bc1-baee-84608f08aec4\Microsoft_Tests-General Journal_24.3.21374.21951.app Synchronizing Tests-General Journal on tenant default Installing Tests-General Journal on tenant default App Microsoft_Tests-General Journal_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\d3728d69-e446-4a8c-a2e0-30c61886dbe0\Microsoft_Tests-Graph_24.3.21374.21951.app Synchronizing Tests-Graph on tenant default Installing Tests-Graph on tenant default App Microsoft_Tests-Graph_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\437a9ee3-e81e-4ce2-ba90-2e0af8fe70df\Microsoft_Tests-Integration_24.3.21374.21951.app Synchronizing Tests-Integration on tenant default Installing Tests-Integration on tenant default App Microsoft_Tests-Integration_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\9975234e-3c97-4d29-890d-651eaedc1909\Microsoft_Tests-Invoicing_24.3.21374.21951.app Synchronizing Tests-Invoicing on tenant default Installing Tests-Invoicing on tenant default App Microsoft_Tests-Invoicing_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\1bb0edc6-ffa9-4f56-8c9c-c9426cefdb67\Microsoft_Tests-Job_24.3.21374.21951.app Synchronizing Tests-Job on tenant default Installing Tests-Job on tenant default App Microsoft_Tests-Job_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\c30bd6ff-3c9d-4d14-837c-adaa9e802b78\Microsoft_Tests-Local_24.3.21374.21951.app Synchronizing Tests-Local on tenant default Installing Tests-Local on tenant default App Microsoft_Tests-Local_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\9de98616-bbdf-4774-bc63-ff3db8bb59c4\Microsoft_Tests-Marketing_24.3.21374.21951.app Synchronizing Tests-Marketing on tenant default Installing Tests-Marketing on tenant default App Microsoft_Tests-Marketing_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\371d819b-1ea9-4b1e-8128-dd22cf962e71\Microsoft_Tests-Misc_24.3.21374.21951.app Synchronizing Tests-Misc on tenant default Installing Tests-Misc on tenant default App Microsoft_Tests-Misc_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\6d6a652f-2620-477d-a65f-df4db85eeb53\Microsoft_Tests-Monitor Sensitive Fields_24.3.21374.21951.app Synchronizing Tests-Monitor Sensitive Fields on tenant default Installing Tests-Monitor Sensitive Fields on tenant default App Microsoft_Tests-Monitor Sensitive Fields_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\97bbcd84-4d6a-4c2c-8a0a-d2b3de9a969d\Microsoft_Tests-Permissions_24.3.21374.21951.app Synchronizing Tests-Permissions on tenant default Installing Tests-Permissions on tenant default App Microsoft_Tests-Permissions_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\9d3187de-e783-4044-af28-73e028e71705\Microsoft_Tests-Physical Inventory_24.3.21374.21951.app Synchronizing Tests-Physical Inventory on tenant default Installing Tests-Physical Inventory on tenant default App Microsoft_Tests-Physical Inventory_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\a480d936-eeaf-47c5-91f3-51d823c51015\Microsoft_Tests-Prepayment_24.3.21374.21951.app Synchronizing Tests-Prepayment on tenant default Installing Tests-Prepayment on tenant default App Microsoft_Tests-Prepayment_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\34724d9f-3a49-4754-915d-2d9e0aa69f55\Microsoft_Tests-Rapid Start_24.3.21374.21951.app Synchronizing Tests-Rapid Start on tenant default Installing Tests-Rapid Start on tenant default App Microsoft_Tests-Rapid Start_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\92d6efa2-59ba-4991-9456-f1f8b0e14887\Microsoft_Tests-Report_24.3.21374.21951.app Synchronizing Tests-Report on tenant default Installing Tests-Report on tenant default App Microsoft_Tests-Report_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\ec282af8-0ff9-4b45-9093-5d8dc27704f6\Microsoft_Tests-Resource_24.3.21374.21951.app Synchronizing Tests-Resource on tenant default Installing Tests-Resource on tenant default App Microsoft_Tests-Resource_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\3befb119-16d2-4c8a-870d-144361b571cb\Microsoft_Tests-Reverse_24.3.21374.21951.app Synchronizing Tests-Reverse on tenant default Installing Tests-Reverse on tenant default App Microsoft_Tests-Reverse_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\8b319210-871a-4e85-a734-4b82e85d6449\Microsoft_Tests-SCM_24.3.21374.21951.app Synchronizing Tests-SCM on tenant default Installing Tests-SCM on tenant default App Microsoft_Tests-SCM_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\4d3a7337-7c33-4a19-a1f3-c1a4d8ca6855\Microsoft_Tests-SMB_24.3.21374.21951.app Synchronizing Tests-SMB on tenant default Installing Tests-SMB on tenant default App Microsoft_Tests-SMB_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\c7af90f4-91c3-458f-8f3e-a338889f9c20\Microsoft_Tests-Upgrade_24.3.21374.21951.app Synchronizing Tests-Upgrade on tenant default Installing Tests-Upgrade on tenant default App Microsoft_Tests-Upgrade_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\fcd4f68b-9978-4036-b93e-800ef873a3e0\Microsoft_Tests-User_24.3.21374.21951.app Synchronizing Tests-User on tenant default Installing Tests-User on tenant default App Microsoft_Tests-User_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\8929c62a-7d6b-4469-bce4-cc1706375234\Microsoft_Tests-VAT_24.3.21374.21951.app Synchronizing Tests-VAT on tenant default Installing Tests-VAT on tenant default App Microsoft_Tests-VAT_24.3.21374.21951.app successfully published Publishing C:\ProgramData\BcContainerHelper\Extensions\bc243-de\80ffd3a2-5e87-4dbe-9c5b-ef44d50e22ec\Microsoft_Tests-Workflow_24.3.21374.21951.app Synchronizing Tests-Workflow on tenant default Installing Tests-Workflow on tenant default App Microsoft_Tests-Workflow_24.3.21374.21951.app successfully published TestToolkit successfully imported Cleanup old dotnet core assemblies Container bc243-de successfully created Use: Get-BcContainerEventLog -containerName bc243-de to retrieve a snapshot of the event log from the container Get-BcContainerDebugInfo -containerName bc243-de to get debug information about the container Enter-BcContainer -containerName bc243-de to open a PowerShell prompt inside the container Remove-BcContainer -containerName bc243-de to remove the container again docker logs bc243-de to retrieve information about URL's again Press any key to continue...: ```
freddydk commented 1 month ago

@someC0d3r - it could be caused by your docker file system. When I see problems like this, I typically clean up the docker file system using https://freddysblog.com/2018/12/11/clean-up-after-yourself-docker-your-mom-isnt-here/ - and then retry.

someC0d3r commented 1 month ago

@freddydk Sorry, I didn't mentioned that: I already did this :-/

The only solution (right now) for me is to not enter an imageName and "dodge" the error.

m3koenig commented 1 month ago

I've found this because of this problem in our builds. Also without a license but I could not remove the image (or I did not find the way for ALOps). I've also cleaned up the server many times and restarted it. Any other ideas? :/

Mkublbock commented 1 month ago

For me setting "cacheImage" to false in "Run-ALPipeline" solved the problem. It's a workaround, not a fix but it works for now.

freddydk commented 1 month ago

@someC0d3r - looking at the output, I can see

Container OS Version: 10.0.20348.2529 (ltsc2022) Host OS Version: 10.0.22631.3296 (23H2)

Host OS is from March.

Please try to install all updates to the host OS and see whether this makes a difference.

m3koenig commented 1 month ago

This is mine:

Container OS Version: 10.0.20348.2529 (ltsc2022) Host OS Version: 10.0.20348.2582 (ltsc2022)

Should they be exact the same? or is it enough, if its close enough?

akhileshekartha commented 1 month ago

I noticed this issue was due to space limitations on the C drive. While running several different version builds, the free space dropped below 5 GB, causing the program to fail in creating the image. We recently increased the build machine's C drive from 128 GB to 256 GB, and now everything is working fine.

valsansilviu commented 1 month ago

Hello, I encounter the same issue. Does anybody has a clue where is this issue coming from? What changes in the past days? All I see here are workarounds and them are not suitable for a long term solution.

freddydk commented 1 month ago

@valsansilviu - of the people responding on this issue, the reason for their problems seems to be different things, but all related to creating a local image. I don't know the reason for the problem you encounter.

Typically the hcsshim::ImportLayer error is related to faulty file system on the host or a version number mismatch - not something I can do anything about.

We have just released the latest version of the generic image on the July update of Windows Server Container, so @m3koenig will have a container version which is the same as the host version - maybe this makes things better.

m3koenig commented 1 month ago

ohh it worked! Thanks! it was the update of the server?

freddydk commented 1 month ago

@m3koenig - it really shouldn't be like that, but unfortunately, Windows Containers are very picky wrt versions.

m3koenig commented 1 month ago

Thanks! Good to know, that this also could be a Problem with a behavior like this :)

m3koenig commented 2 weeks ago

For documentation purposes and in case someone else encounters the same issue, here it is again!

Container OS Version: 10.0.20348.2582 (ltsc2022) Host OS Version: 10.0.20348.2655 (ltsc2022)

When I want to create a New-BcImage. I will wait.