Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

BC 14 and Docker. Is it still possible?

Posted on by 15,428

Hi team 

Can we still use Docker to install BC14? If yes what is the script for this? 

Thanks 

  • MahGah Profile Picture
    MahGah 15,428 on at
    RE: BC 14 and Docker. Is it still possible?

    Thanks Teddy. Removing license file worked. Below is the working code just in case for future

    $version = 14

    $containerName = 'bc' + $version

    $password = 'password'

    $auth = 'UserPassword'

    $artifactUrl = Get-BcArtifactUrl -type 'onprem' -select 'Latest'  -version $version

    # *** CREATE BC CONTAINER

    New-BcContainer `

      -accept_eula `

      -accept_outdated `

      -containerName $containerName `

      -auth $auth `

      -artifactUrl $artifactUrl `

      -imageName $containerName `

      -multitenant:$false `

      -assignPremiumPlan `

      -dns '8.8.8.8' `

      -updateHosts `

      -shortcuts DesktopFolder `

  • Verified answer
    TeddyH Profile Picture
    TeddyH 12,868 Super User 2024 Season 1 on at
    RE: BC 14 and Docker. Is it still possible?

    Oh, you need to have BC license in it. You can try using cronus license or try removing the licenseFile parameter.

  • MahGah Profile Picture
    MahGah 15,428 on at
    RE: BC 14 and Docker. Is it still possible?

    Hi TeddyH

    Thank you so much. I have two issues and I appreciate your help

    1) I am receiving the below error. I have created NAV folder in C and it is there. How I can resolve this issue?

    Copy-Item : Cannot find path 'C:\NAV\NAV.flf' because it does not exist.

    At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\4.0.5\ContainerHandling\New-NavImage.ps1:532 char:25

    + ...             Copy-Item -path $licenseFilePath -Destination "$dbPath\CR ...

    +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

       + CategoryInfo          : ObjectNotFound: (C:\NAV\CRONUS.flf:String) [Copy-Item], ItemNotFoundException

       + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand

    2) I only created blank NAV.flf file in folder. Should I include anything specific in it? I have no license for BC.

    Thanks

  • Verified answer
    TeddyH Profile Picture
    TeddyH 12,868 Super User 2024 Season 1 on at
    RE: BC 14 and Docker. Is it still possible?

    I don't see why not. I have been using it for BC11.

    Here's a simple script.

    $version = 14

    $containerName = 'bc' + $version

    $password = 'password'

    $auth = 'UserPassword'

    $artifactUrl = Get-BcArtifactUrl -type 'onprem' -select 'Latest'  -version $version

    $licenseFile = 'C:\NAV\NAV.flf'

    # *** CREATE BC CONTAINER

    New-BcContainer `

       -accept_eula `

       -accept_outdated `

       -containerName $containerName `

       -auth $auth `

       -artifactUrl $artifactUrl `

       -imageName $containerName `

       -multitenant:$false `

       -assignPremiumPlan `

       -licenseFile $licenseFile `

       -dns '8.8.8.8' `

       -updateHosts `

       -shortcuts DesktopFolder `

  • MahGah Profile Picture
    MahGah 15,428 on at
    RE: BC 14 and Docker. Is it still possible?

    Hi

    Can you please explain more?

    Thanks

  • Suggested answer
    Amit_Sharma Profile Picture
    Amit_Sharma 2,545 on at
    RE: BC 14 and Docker. Is it still possible?

    Hi,

    No, there is no need.

    Regards

    Amit Sharma

    www.erpconsultors.com

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans