From 301a5aa14ad6d66895b7ab4df6aa3820c99ad230 Mon Sep 17 00:00:00 2001 From: knom Date: Wed, 22 Jun 2016 10:37:13 +0200 Subject: [PATCH] Updated --- .../readme.md | 37 +++++++++++++------ 1 file changed, 26 insertions(+), 11 deletions(-) diff --git a/samples/manage/windows-containers/mssql-server-2014-express-windows/readme.md b/samples/manage/windows-containers/mssql-server-2014-express-windows/readme.md index 6b194926..67a5afb2 100644 --- a/samples/manage/windows-containers/mssql-server-2014-express-windows/readme.md +++ b/samples/manage/windows-containers/mssql-server-2014-express-windows/readme.md @@ -31,7 +31,7 @@ You can run the container with the following command. (Note the you'll need Windows Server Core TP5 v10.0.14300.1000.) ```` -docker run -p 1433:1433 -v C:/temp/:C:/temp/ --env sa_password= --env attach_dbs="" -v microsoft/mssql-server-2014-express-windows +docker run -p 1433:1433 -v C:/temp/:C:/temp/ --env sa_password= --env attach_dbs="" microsoft/mssql-server-2014-express-windows ```` - **-p HostPort:containerPort** is for port-mapping a container network port to a host port. @@ -44,20 +44,35 @@ docker run -p 1433:1433 -v C:/temp/:C:/temp/ --env sa_password= -- sa_password: Sets the sa password and enables the sa login -- attach_dbs: The configuration for attaching custom DBs (.mdf, .ldf files). +- **sa_password**: Sets the sa password and enables the sa login +- **attach_dbs**: The configuration for attaching custom DBs (.mdf, .ldf files). - This should be a JSON string, formed like the following (note the SINGLE quotes and everything in one line): + This should be a JSON string, in the following format (note the use of SINGLE quotes!) ``` -[{'dbName':'MaxDb','dbFiles':['C:\\temp\\maxtest.mdf','C:\\temp\\maxtest_log. -ldf']},{'dbName':'PerryDb','dbFiles':['C:\\temp\\perrytest.mdf','C:\\temp\\perrytest_log. -ldf']}] + [ + { + 'dbName': 'MaxDb', + 'dbFiles': ['C:\\temp\\maxtest.mdf', + 'C:\\temp\\maxtest_log.ldf'] + }, + { + 'dbName': 'PerryDb', + 'dbFiles': ['C:\\temp\\perrytest.mdf', + 'C:\\temp\\perrytest_log.ldf'] + } + ] ``` - There can be zero to many databases in the array. - - dbName: The name of the database - - dbFiles: An array of absolute paths to the .MDF and .LDF files. - Can be one or many, note that the path has double backslashes for escaping! + This is an array of databases, which can have zero to N databases. + + Each consisting of: + - **dbName**: The name of the database + - **dbFiles**: An array of one or many absolute paths to the .MDF and .LDF files. + + **Note:** + The path has double backslashes for escaping! + The path refers to files **within the container**. So make sure to include them in the image or mount them via **-v**! + This example shows all parameters in action: ```