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 :
Business Central forum

Installing Sandbox Environment locally with Docker

(0) ShareShare
ReportReport
Posted on by

Hi I'm installing Sandbox Environment locally with docker, but in powershell cannot see any progress after result:

creating container ... from image Microsoft/bcsandbox:ca.

Here is the screenshot attached

4035.Capture.PNG

Categories:
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    Normally it's quite a long process :) Can you show us the command you have launched to create the Container? Have you used NavContainerHelper?

  • Community Member Profile Picture
    on at

    Hi Stefano

    I'm using this command

    install-module navcontainerhelper -force

    # set accept_eula to $true to accept the eula found here: go.microsoft.com/fwlink

    $accept_eula = $true

    $containername = '********App'

    $navdockerimage = 'microsoft/bcsandbox:ca'

    $appbacpacuri = ''

    $tenantbacpacuri = ''

    $additionalParameters = @()

    if ($appbacpacuri -ne '' -and $tenantbacpacuri -ne '') {

       $additionalParameters = @("--env appbacpac=""$appbacpacuri""","--env tenantBacpac=""$tenantbacpacuri""")

    }

    $credential = get-credential -UserName $env:USERNAME -Message "Using Windows Authentication. Please enter your Windows credentials."

    New-NavContainer -accept_eula:$accept_eula `

                    -containername $containername `

                    -auth Windows `

                    -Credential $credential `

                    -includeCSide `

                    -alwaysPull `

                    -doNotExportObjectsToText `

                    -usessl:$false `

                    -updateHosts `

                    -assignPremiumPlan `

                    -shortcuts Desktop `

                    -imageName $navdockerimage `

                    -additionalParameters $additionalParameters

    Setup-NavContainerTestUsers -containerName $containername -password $credential.Password

  • Community Member Profile Picture
    on at

    Usually how much time it takes? May be I'm doing something wrong and there may be some error and it's not showing up.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    After downloading the container image (20/30 minutes), the process should go quite slow (few minutes). Normally if there are errors, they're prompted.

    The script seems ok. Are you on Windows 10 Pro or on Windows Server 2016?

  • Community Member Profile Picture
    on at

    Ok that makes sense. I'm on Windows 10 Pro.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    With Windows 10 Pro, check that you have HHyper-V and Containers features installed (normally this is done by docker after asking you).

  • Community Member Profile Picture
    on at

    In this machine virtualization is disabled. Is It okay? or should I enable it using BIOS?

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    No it’s not ok. It must be enabled.

  • Community Member Profile Picture
    on at

    Great!!!! It's running as the virtualization was disabled. Thanks a lot.

  • ace Profile Picture
    5 on at

    BIOS set up Enabled the virtual tech. run your script in the powershell

    It takes some time in the creation of the container try pressing ENTER

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans