Bart
to a name of your choosing, and reallyStrongPwd#123
to a password of your choosing.-e 'ACCEPT_EULA=Y'
Y
shows that you agree with the EULA (End User Licence Agreement). This is required.-e 'SA_PASSWORD=reallyStrongPwd#123'
sa
database password.-p 1433:1433
--name Bart
sql_server_2019
or similar.-d
mcr.microsoft.com/mssql/server:2019-CTP3.2-ubuntu
The password should follow the SQL Server default password policy, otherwise the container can not setup SQL server and will stop working. By default, the password must be at least 8 characters long and contain characters from three of the following four sets: Uppercase letters, Lowercase letters, Base 10 digits, and Symbols.
-p 1433:1433
to -p 1400:1433
. Everything else remains the same.Bart
with the name of your own container):Localhost,1400
instead of just Localhost
. Same with mssql-cli, which is a command line SQL tool.