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