Docker for Windows uses mssql2017

Source: Internet
Author: User
Tags mssql strong password docker run

Indeed some pits, originally before the pit have stepped on, but time a long forgotten, this time for the computer and all stepped on again.

Several points (pits):

1.docker installation is a good default. Then the C drive must be set to share, or the folder after the installation is always error.

2. When you preset the sa password, do not sasasa this, you must use a strong password, such as [email protected] #123456.

3. When the host uses the MSSM link database, I am currently not changing the port to use 1433:1433, then write "localhost,1433" instead of a colon.

4. When doing database storage directory sharing, note that the host (WIN) directory starts with the drive letter: use/Replace, for example:/d/data=d:\data

Create mssql2017 Container command

Docker run-e ' accept_eula=y '-e ' [email protected] #123456 '-p 1433:1433-v/d/sql.data/docker:/var/opt/mssql/data--name Mssql2017-d Microsoft/mssql-server-linux:2017-latest

Host can refer to the installation of MSSM, the complete database seems to be unnecessary.

Docker for Windows uses mssql2017

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.