本文演示通過PowerShell+Docker Desktop for Windows 一鍵部署Sitecore10.3(即Sitecore最新版)Docker開發(fā)/測試/演示 環(huán)境。
官方參考?SitecoreXP 10.3.0 Developer Workstation Deployment With Docker
演示配置為XP Single(XP0)?
環(huán)境準備
1,windows10+/Windows Server2019(Windows Server 1903)+
2,Sitecore 10 license file
3,Docker Desktop for Windows
4,官方建議16GB的內(nèi)存,實際8GB內(nèi)存應該也可以(需要驗證)
本文示例操作系統(tǒng)為:Windows 11專業(yè)版
?文章來源地址http://www.zghlxwxcb.cn/news/detail-425780.html
指引
1,前置條件:Set up the environment
下載并安裝Docker Desktop for Windows
確保以下端口未被占用:
?
2,下載部署包
?下載?SXP Sitecore Container Deployment 10.3.0.008463.1229,下載SitecoreContainerDeployment.10.3.0.008463.1229.zip文件即可。
可以通過compose-init.ps1文件查閱管理后臺的密碼(默認管理員賬號為admin)。
以管理員方式打開Windows PowerShell ISE,進入部署包所在目錄:
cd D:\Workspace\Sitecore10\SitecoreContainerDeployment.10.3.0.008463.1229\compose\ltsc2022\xp0
執(zhí)行:
.\compose-init.ps1 -LicenseXmlPath D:\license\license.xml
等待命令執(zhí)行完畢(較耗時,需下載各個image),再執(zhí)行:
docker-compose up --detach
執(zhí)行完畢后查看Containers的狀態(tài):
?打開瀏覽器,訪問:https://xp0cm.localhost/
?訪問?https://xp0cm.localhost/sitecore 進入管理后臺,默認管理員賬號為admin
?進入Control Panel,重新build index。
?
問題集
1,error:“Pulling from windows/servercore: no matching manifest for linux/amd64 in the manifest list entries”
Docker Desktop托盤,?Switch to Windows containers
Docker Desktop默認安裝以后還是Linux模式,需要切換到Windows containers模式。
?
2,error: "A parameter cannot be found that matches parameter name 'AllowPrerelease'"
執(zhí)行:
Install-Module -Name PackageManagement -Repository PSGallery -Force -AllowClobber Install-Module -Name PowerShellGet -Repository PSGallery -Force -AllowClobber
參考?A parameter cannot be found that matches parameter name 'AllowPrerelease'
?
3,關機后無法啟動windows容器
需要先刪除全部Container,執(zhí)行
docker container rm $(docker container ls -aq)
確保當前目錄在:
cd D:\Workspace\Sitecore10\SitecoreContainerDeployment.10.3.0.008463.1229\compose\ltsc2022\xp0
然后重新執(zhí)行:
docker-compose up --detach
?啟動成功:
?
最后,xp1的docker部署包也同樣,切換執(zhí)行目錄即可。文章來源:http://www.zghlxwxcb.cn/news/detail-425780.html
?
到了這里,關于Sitecore XP 10.3(latest) Docker一鍵部署的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!