Skip to content
This repository was archived by the owner on Jun 14, 2019. It is now read-only.
This repository was archived by the owner on Jun 14, 2019. It is now read-only.

VOLUME instruction causes trouble #22

@joostmeijles

Description

@joostmeijles

I am using Windows 10 update 1809 and Docker Desktop for Windows 2.0.0.3.

I start the system using a docker-compose file that overlays a bind-mount at the data directory location;

version: '2.4'

services:
 mssql:
  image: ...
  isolation: process
  environment:
    ACCEPT_EULA: "Y"
    sa_password: ${SQL_SA_PASSWORD}
  volumes:
    - .\data\mssql:C:\Data

With above setup I had following error:

  • ssql_1 | Invoke-Sqlcmd : Cannot detach the database error when SQL server somehow was not properly shutdown (not killed)

This problem seem to be related to the VOLUME instruction in the Dockerfile (e.g.

)

When I remove the VOLUME instruction these problems (see avivasolutionsnl/sitecore-docker#49) do no longer occur.

As there is no real added value for the VOLUME instruction in the Dockerfile, e.g. volume usage can be specified in the docker-compose file, I removed the instruction for the avivasolutionsnl/sitecore-docker repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions