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

Announcements

No record found.

News and Announcements icon
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 485

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")

  • Suggested answer
    YUN ZHU Profile Picture
    103,085 Super User 2026 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 719 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 410 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 369 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans