Prerequisites
In order to run the Sitecore XM environment in a docker container, install and verify that you have all the necessary programs.
⚠️
You will also need a valid Sitecore license.
Powershell 5.1
Powershell 5.1 comes bundled with Windows 10 so you do not have to download and install.
- Verify
- In Command Prompt, run
powershell
- Run
$PSversionTable
- In Command Prompt, run
.NET Core 3.1 or later
- Download and install .Net 3.1 (opens in a new tab)
- Verify
- In cmd run
dotnet --version
- In cmd run
.Net Framework 4.8
- Download and install .Net Framework 4.8 (opens in a new tab)
- Verify
- In Powershell run
If it returns true, that means 4.8 is installed. More info on how to determine .Net Framework version (opens in a new tab)(Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full").Release -ge 528040
Docker for windows
- Enable Hyper-V
- On Windows search, type "Turn on Windows features on or off"
- Enable Hyper-V
- Download and install docker (opens in a new tab)
- Run Docker Desktop
- Switch to windows containers
- Open the windows system tray, and right click on Docker Desktop
- Click "Switch to windows containers…"
Node.js
- For node.js, I like to use NVM for windows (opens in a new tab), which will allow you to easily switch node versions
- To use NVM, uninstall any pre-existing node installations, otherwise there will be conflict
- Download NVM for windows (opens in a new tab)
- To use node lts
- Install lts:
nvm install lts
- Switch to lts:
nvm use lts
- Install lts:
- Verify
- In cmd,
npm -v
- In cmd,
Sitecore dotnet template
- Install Sitecore template
dotnet new -i Sitecore.DevEx.Templates --nuget-source https://sitecore.myget.org/F/sc-packages/api/v3/index.json