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

Business Central Docker

(0) ShareShare
ReportReport
Posted on by 50

How do I connect business central that is running on dcker with Azure sql database ? 

container is up but unhealthy 

when i see logs it say container couldnt connect with database 

any thoughts?

  • luki1997 Profile Picture
    50 on at
    RE: Business Central Docker

    i want to use database that is in my localhost. when I run New-BcContainerWizard when buildnng the container i get this kind of error. 

     1588.Screenshot_5F00_1.png

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,021 Moderator on at
    RE: Business Central Docker

    And you do not get any errors when that is executed?

    Maybe you can show the script that the BcContainer wizards generates?

  • luki1997 Profile Picture
    50 on at
    RE: Business Central Docker

    I am using New-BcContainerWizard

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,021 Moderator on at
    RE: Business Central Docker

    Are you using the BCContainer helper ?

    Try using the New-BcContainerWizard

    freddysblog.com/.../

    www.sauravdhyani.com/.../how-can-i-create-docker-container-using.html

    That will ask you where you want your database located or if you want to use an existing database.

  • luki1997 Profile Picture
    50 on at
    RE: Business Central Docker

    I also tried to connect busines central that is running a docker with sql server  that is runnig on my local machine and still it doesnt comnect to database.

    Any help?

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,021 Moderator on at
    RE: Business Central Docker

    I am not sure you will get that to work from a Docker container.

    But here is the process needed to make Business Central use Azure SQL

    docs.microsoft.com/.../deploy-database-azure-sql-database

    I recommend you use SQL express for your Docker containers instead.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,017 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans