SQL SERVER Run the following to keep data , or remove the " -v options below" not to keep Ms Sql data
docker run -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=admin1234!' -p 1433:1433 -v c:/mssql/data:/var/opt/mssql/data -v c:/mssql/data/log:/var/opt/mssql/log -v c:/mssql/data/secrets:/var/opt/mssql/secrets -d mcr.microsoft.com/mssql/server
Use sqljdbc.jar and not sqljdbc4.jar or do not use sqljdbc42.jar, if you are connecting via a java tool.
Note: make sure c:/mssql is created and is accessible on the host machine. If the files are deleted on the host machine then all data is gone.
Content type
Image
Digest
Size
471.2 MB
Last updated
over 4 years ago
docker pull abiphilip/sqlserver