You probably know this. I just write this post because I didn’t up until today.
I’m using Docker quite regularly (well, if you find “pulling an image twice a day” is regular) .. and I have been using mostly these two repositories according my needs (for more info, look here):
- “bcinsider.azurecr.io/bcsandbox-master” for the very latest version (the future release)
- “microsoft/bcsandbox” for the current release
Since quite some time, the databases on this image didn’t hold any data anymore. We could import data using RapidStart Packages – and for a while, this is what I did .. . If you want to know more, here you can find some more info:
- CRONUS company creation in Business Central container
- Demo Data for Business Central (Docker Image)
- Some description on GitHub
This could take a while – so I only did it when I really needed demo data.
Up until today, when a colleague found out that there is actually a docker tag we can set that is the W1-version WITH data! The magic tag is “base”. He found it somewhere deep in the github-issue-list, as a comment by Freddy. To quote Freddy:
If you use microsoft/bcsandbox:base, then you will get w1 demo data.
base is the foundation of all languages and will contain the on-prem w1 db.
master insider builds with :w1 will contain the saas demo data.
So there you go – I changed all my scripts so they use these docker images now:
And VOILA – data!
There is a real difference between the base image and the ‘normal’ image. The base image behaves like a NAV installation, while the normal image behaves like Business Central online.
For example, ApplicationArea feature is not active in the base image, while it is active in the normal image.
So, if developing apps for Business Central online, I would still recommend to go with the normal sandbox image to get the real Business Central experience.
Fair point, thanks!
Should this ‘base’ tag still work?
I created a container with image ‘mcr.microsoft.com/businesscentral/sandbox:base’ but didn’t get any data, just an empty ‘My Company’
I honestly don’t know – Microsoft seems to change its conventions regularly – hard to keep up.
What I do recently:
I try to figure out the image from the list that I can get from the corresponding repo:
But .. just tested with “mcr.microsoft.com/businesscentral/sandbox:base” and I DO have data..
Try to change company to “CRONUS International Ltd.”