Sitecore XP 10.3 (latest) Docker one-click deployment
2023-04-26 10:23
Hang Wei
Read(311)
Comment(0)
edit
collect
report
This article demonstrates the one-click deployment of Sitecore 10.3 (the latest version of Sitecore) Docker development/test/demo environment through PowerShell+Docker Desktop for Windows.
Official reference SitecoreXP 10.3.0 Developer Workstation Deployment With Docker
The demo configuration is XP Single (XP0)
Environment preparation
1, windows10+/Windows Server2019(Windows Server 1903)+
2, Sitecore 10 license file
3. Docker Desktop for Windows
4. The official recommendation is 16GB of memory. Actual 8GB of memory should also work (needs to be verified)
The example operating system in this article is: Windows 11 Professional Edition
Guidelines
1. Precondition: Set up the environment
Download and install Docker Desktop for Windows
Make sure the following ports are not occupied:
2. Download the deployment package
Download SXP Sitecore Container Deployment 10.3.0.008463.1229 and download the SitecoreContainerDeployment.10.3.0.008463.1229.zip file.
You can check the password of the management background through the compose-init.ps1 file (the default administrator account is admin).
Open Windows PowerShell ISE in administrator mode and enter the directory where the deployment package is located:
cd D:\Workspace\Sitecore10\SitecoreContainerDeployment.10.3.0.008463.1229\compose\ltsc2022\xp0
Execute:
.\compose-init.ps1 -LicenseXmlPath D:\license\license.xml
Wait for the command to be executed (it takes time and requires downloading each image), and then execute:
docker-compose up --detach
Check the status of Containers after execution:
Open the browser and visit: https://xp0cm.localhost/
Visit https://xp0cm.localhost/sitecore to enter the management background. The default administrator account is admin
Enter the Control Panel and rebuild the index.
Question Set
1, error: “Pulling from windows/servercore: no matching manifest for linux/amd64 in the manifest list entries”
Docker Desktop tray, Switch to Windows containers
Docker Desktop is still in Linux mode after default installation and needs to be switched to Windows containers mode.
2, error: “A parameter cannot be found that matches parameter name ‘AllowPrerelease'”
Execute:
Install-Module -Name PackageManagement -Repository PSGallery -Force -AllowClobber Install-Module -Name PowerShellGet -Repository PSGallery -Force -AllowClobber
Reference A parameter cannot be found that matches parameter name ‘AllowPrerelease’
3. The windows container cannot be started after shutting down
You need to delete all Containers first and execute
docker container rm $(docker container ls -aq)
Make sure the current directory is:
cd D:\Workspace\Sitecore10\SitecoreContainerDeployment.10.3.0.008463.1229\compose\ltsc2022\xp0
Then execute again:
docker-compose up --detach
Start successfully:
Finally, the same goes for the docker deployment package of xp1, just switch the execution directory.
Author: hangwei
Source: http://www.cnblogs.com/hangwei/
About the author: Focus on open source platforms, distributed system architecture design and development, database performance tuning, etc. If you have any questions or suggestions, please let me know!
Copyright statement: The copyright of this article belongs to the author and the blog park. Reprinting is welcome, but this statement must be retained without the author’s consent, and a link to the original text must be provided in an obvious position on the article page.
If you think the article is helpful to you, you can click “Recommend” in the lower right corner of the article. Your encouragement is the author’s greatest motivation to persist in originality and continuous writing!