联系我们

Specialized SQL Server Images Added to the Sitecore Docker Image Repository

Senior Sitecore Developer
Valtech DK

二月 11, 2018

Just updated the sitecoreops/sitecore-images repository with specialized SQL Server images for each Sitecore 9 version (see the Automatically build and update Sitecore base Docker images post for details on how to set it up).

The new images is based on the official Microsoft SQL Server 2016 SP1 Developer Edition image but it have as few additional features:

  1. Automatically adds all Sitecore databases to the volume mount C:\data when starting up, if no databases was found.
  2. Automatically attaches all databases in the volume mount C:\data.

Since the volume mount is specified in the image, the databases will always be persisted on your host machine, either in the default Docker volume location or another location of your choosing!

With this you can now start a fresh Sitecore instance with only this compose file and nothing else:

version: '2.1'

services:

  sql:
    image: your-org-or-username/sitecore:9.0.171219-sql
    volumes:
      - .\data:C:\Data

  cm:
    image: your-org-or-username/sitecore:9.0.171219-xm1-cm
    links:
      - sql

Article originally published on Invoke Command blog: Specialized SQL Server Images Added to the Sitecore Docker Image Repository 

联系我们

我們很樂意聽到您的聲音!請填寫表格,辦公室最近的人員將與您聯繫。
如果您需要其他格式和/或溝通支援來提供回饋,請聯絡Sheree Atcheson

让我们重新创造未来