
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")
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.
Thanks.
ZHU