web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Trouble installing Business Central Sandbox with Docker

(0) ShareShare
ReportReport
Posted on by 481

The error:
Initialization of container bcsandbox failed
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\3.0.11\ContainerHandling\Wait-NavContainerReady.ps1:42 char:17
+ ... throw "Initialization of container $containerName failed" ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Initialization ...csandbox failed:String) [], RuntimeException
+ FullyQualifiedErrorId : Initialization of container bcsandbox failed

Why does this error come up? I used the BcContainerHelper to make the powershell script:
$containerName = 'bcsandbox'
$credential = Get-Credential -Message 'Using UserPassword authentication. Please enter credentials for the container.'
$auth = 'UserPassword'
$artifactUrl = Get-BcArtifactUrl -type 'Sandbox' -country 'us' -select 'Latest'
$licenseFile = ' '
New-BcContainer `
-accept_eula `
-containerName $containerName `
-credential $credential `
-auth $auth `
-artifactUrl $artifactUrl `
-multitenant:$false `
-licenseFile $licenseFile `
-includeAL -doNotExportObjectsToText `
-updateHosts
-myscripts @("">raw.githubusercontent.com/.../HelperFunctions.ps1")

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,748 Super User 2025 Season 2 on at

    Hi, Sorry I'm not an expert on Docker, the following is my procedure to create BC Docker environment, I hope it can give you some reference.

    Remove-NavContainer test20
    Measure-Command {
        $artifactUrl = Get-BCArtifactUrl -type Sandbox -select Latest
        if ($credential -eq $null -or $credential -eq [System.Management.Automation.PSCredential]::Empty) {     
      $credential = get-credential -UserName $env:USERNAME `
                               -Message "Please enter your Windows credentials." 
      } 
        New-NavContainer `
            -accept_eula `
            -containerName test20 `
            -artifactUrl $artifactUrl `
            -Credential $credential `
            -auth UserPassword `
            -updateHosts `
            -imagename myown
    }

    And Freddy is an expert on this and hopefully you too will find some tips in the blog below.

    https://freddysblog.com/

    Thanks.

    ZHU

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,092

#2
YUN ZHU Profile Picture

YUN ZHU 663 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 515

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans