How to Use Docker Containers for Dynamics NAV

by | Updated June 5, 2018 | Development, Dynamics NAV

Wondering how to use Docker Containers for Dynamics NAV? The first step on getting started with Docker Containers is selecting the Docker Container Tag from this list at This will be used in the place of <ReplaceWithDockerTag>.

Next Open – Click on Cloud Shell Icon

Docker Containers

If you have never used Cloud Shell, you can find a great Overview of Azure Cloud Shell here.

Next, Create a Storage Account, if you do not have one already.

Docker Containters

For our examples, we will Run Cloud Shell – Bash (You may need to change from PowerShell).

Docker Containers

If this is your first time Creating an Azure Container, you will need to first Create Resource Group. This only has to be run once.

Now, for the moment we have all been waiting for!  Let’s Create a Docker Container!

Let it run for 10-15 Minutes – Provisioning times for Docker Containers may vary ?

If you are impatient and want to check the Provisioning State status now, run the following command:

Docker Containers

Once the Azure Container is finished the “provisioningState” will be “Succeeded”.

Docker Containers

Now that your Docker Container is running, you need to look at the details of what you just created.

You will need to run the following command:

Docker Containers

Make note of the Following:
• NAV Admin Username
• NAV Admin Password
• Container DSN Name
• Certificate.cer URL

Next, you will need to find the Public IP Address by Searching for the Container Group you created with the <ReplaceWithDockerTag>

Docker Containers

Now for the tricky part.  You will need to use the Poor Man’s DNS, because the DNS that the Docker Container created is just random Hex Values. To do this, navigate to the following:


You will see a file Named Host without any extension. Right Click on the file and Open with Notepad Editor

Docker Containers

Add the Public IP Address, then a space, then the Container DSN Name.

Docker Containers

Save the file and make sure it doesn’t have an extension. The file name should just be host’s.

You can test your Poor Man’s DNS by navigating to the Certificate.cer URL:


Docker Containers

You will download the Certificate.cer and install in the Trusted Publishers Certificate Store.

Docker Containers

Docker Containers

Now you are ready to Navigate to the Web Client


You will use the NAV Admin Username and NAV Admin Password you got with the logs command:

Docker Containers

But what about the DEV Client?  You will need to add some special syntax to connect:

Docker Containers

  1. You will need to enter tcp:<ReplaceWithContainerDNSName>\nav,1433
  2. Change Authentication to Database Server Authentication
  3. User ID will be sa – SQL Admin
  4. Password: will be the NAV Admin Password
  5. Select the Database Name CronusNA

You are ready for DEV in your new Azure Docker Container!

Related Posts

  • We work with customers that currently use any version of Dynamics AX or Dynamics NAV. We can engage directly with you and your team to provide any of our services. We can…

  • The following is the most recently updated view of the support timelines for Microsoft Dynamics NAV.  Microsoft keeps this information on its support website, but I find it a little…

  • *This post was written for Dynamics NAV but the content directly applies to Dynamics 365 for Financials, which is the cloud product based on Dynamics NAV. You may notice some slight…


  1. Madan

    Thanks for this blog.
    1. Can we use AZure Sql Instance with this, instead of inside Sql?
    2. How to change license? by default microsoft license appears?

  2. Taylor Valnes

    Hello Madan,

    I’ve spoken with the blog writer and he had the following answers for you.
    1. The Docker Image was created with a local SQL EXPRESS. You would need to build a docker image that pointed to a Hosted Azure SQL Instance.
    2a. You can change the license by Opening the Development Environment and Uploading the new license.
    2b. You will need to stop and start the docker image with the following commands: “docker stop navserver” and “docker start navserver”. This will ensure that your license is running on the service tier.


Submit a Comment

Your email address will not be published. Required fields are marked *

Upcoming Events


05aug10:00 am10:30 amOn the Job with Dynamics 365 - Manufacturing Shipping / Receiving Department

05aug12:00 pm1:00 pmHow Ag Coops Can Simplify Processing Equity Payments using Levridge

12aug10:00 am10:30 amWhy Levridge Grain? How to Achieve Efficient and Accurate Scale Tickets

12aug12:00 pm1:00 pmThe Three Paths to Dynamics 365 Finance and Supply Chain from Dynamics AX

13aug11:00 am12:00 pmConfab with Stoneridge - Livestream - Inspire Keynote Breakdown

19aug10:00 am11:00 amWhat is Levridge? An Overview of the Ultimate Ag Solution

19aug12:00 pm12:30 pmThe Modern Manufacturer - Death by Safety Stock

27aug11:00 am12:00 pmConfab with Stoneridge - Livestream - Dynamics 365 2020 Wave 2 Preview


02sep10:00 am10:30 amThe Modern Manufacturer - Cycle Count Management

09sep11:00 am12:00 pmModernizing Batch Manufacturing - Ensuring Compliance and Quality Control

16sep10:00 am10:30 amThe Modern Manufacturer - Product Lifecycle Management

30sep10:00 am10:30 amThe Modern Manufacturer - Return Management

About Stoneridge
Stoneridge Software is a unique Microsoft Gold Partner, with emphasis on partner. With specialties in Microsoft Dynamics 365, Microsoft Dynamics AX, Microsoft Dynamics NAV, Microsoft Dynamics GP and Microsoft Dynamics CRM, we focus on attracting the most knowledgeable experts in the field to our team, and prioritize delivering stellar solutions with maximum impact for your business. At Stoneridge, we are deeply committed to your results. Each engagement is met with a dedicated team, ready to provide thorough, tailored, and expert service. Based in Minnesota, we intentionally “step into your shoes,” wherever you are. We focus on what you care about, and develop trusting, long-term relationships with our clients.

Subscribe To Our Blog

Sign up to get periodic updates on the latest posts.

Thank you for subscribing!