dotnet / dotnet/Docker.DotNet

Basic scenario of running SQL Server 2017

Open
#270 4 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C#
Stars
2.4k
Forks
416
PR merge metrics
No merged PRs in 30d

Description

I'm trying to use this library to start a Linux based SQL Server 2017 instance and restore a database to it (this is for integration tests). It's not clear from readme how to achieve this. I've been poking around the various types, but the code version of:

docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=" `
--name "sql1" -p 1401:1433 `
-v sql1data:/var/opt/mssql `
-d microsoft/mssql-server-linux:2017-latest

isn't clear at all. The next thing is to restore the database via docker exec. Using this API, how would I achieve these tasks? Even knowing what types to use would be a big help. Thanks!

https://docs.microsoft.com/en-us/sql/linux/tutorial-restore-backup-in-sql-server-container

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.