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 479

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
    85,845 Super User 2025 Season 1 on at
    RE: Trouble installing Business Central Sandbox with Docker

    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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans