Docker Containers Guide for BC Consultants
This post is a super simple step-by-step guide on how to run BC in a Docker contanier on your local machine.
One reason to do this is that it's now very easy to access the 'Insider' versions of BC, to check out new features. Warning - Insider versions may have features that are different or missing in the final released versions!
Here is an older post on the topic Business Central Insider Releases Artifacts | Roberto Stefanetti Business Central Blog (robertostefanettinavblog.com)
A few things have changed since the above post, namily you dont need an access key to get the insider versions!
Seting up Docker for BC
Running a container-based development environment - Business Central | Microsoft Learn
Here are the simplified steps
- Install docker desktop Install Docker Desktop on Windows | Docker Docs
You will want the x86_64 version if you are using a normal PC |
- When runing the installer - uncheck the "Use WSL" option, as we need to use Hyper-V
- All being well you will see this
- Make sure you have Hyper-V enabeled on your machine, go to the 'old' control pannel and search for 'features', make sure all the Hyper-V features are turned on.
- Start Docker Desktop, you may get an error, but you can ignore this and just switch to Windows containers, right click the notification area icon to see the switch action.
- With Docker running in Hyper-V mode you are ready for the next step of creating a new BC containter!
Create a new BC Container in Docker
- Open 'Windows PowerShell ISE' using the "Run as Admin" option
- Install BC-ContainerHelper
- Now we can use the new command to create a BC container for us, there are a few options so its best to create a scrip file; here is a sample
- Click NEW, paste the code in the window, click RUN
- Once the scrip has run, which can take 10-20 mins depending on your machine, it should look like this:
- Check your docker window, you should have one named bcinsider25, click the name to view the log and then cick the Web Client URL to open BC!
- Login with username:admin, password: admin
Other Handy Links/Bits
- Just update that first param to the correct name of your container - in the example below I'm adding users to a container called 'bcserver'
- In each case the password is the same as the user name to keep things simple!
What do you think?
Please let me know your thoughts in the comments
Connect or follow me on LinkedIn to get all my updates Andrew Wingate | LinkedIn