Environment
Prerequisites

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
    1. In Command Prompt, run powershell
    2. Run $PSversionTable Powershell

.NET Core 3.1 or later

.Net Framework 4.8

Docker for windows

  1. Enable Hyper-V
    1. On Windows search, type "Turn on Windows features on or off"
    2. Enable Hyper-V Turn on Hyper-V
  2. Download and install docker (opens in a new tab)
  3. Run Docker Desktop
  4. Switch to windows containers
    1. Open the windows system tray, and right click on Docker Desktop
    2. Click "Switch to windows containers…" Docker - switch to windows containers...

Node.js

  1. For node.js, I like to use NVM for windows (opens in a new tab), which will allow you to easily switch node versions
  2. To use NVM, uninstall any pre-existing node installations, otherwise there will be conflict
  3. Download NVM for windows (opens in a new tab)
  4. To use node lts
    1. Install lts: nvm install lts
    2. Switch to lts: nvm use lts
  5. Verify
    1. In cmd, npm -v

Sitecore dotnet template

  1. Install Sitecore template
dotnet new -i Sitecore.DevEx.Templates --nuget-source https://sitecore.myget.org/F/sc-packages/api/v3/index.json