This maps the local port 1433 to port 1433 on the container. Required parameter that sets the sa database password. This is required in order to have SQL Server for Linux run on your Mac. The Y shows that you agree with the EULA (End User Licence Agreement). This can be handy when stopping and starting your container from the Terminal. This parameter allows you to name the container. You can omit this parameter to have the container run in its own Terminal window.Īnother optional parameter. This means that it runs in the background and doesn’t need its own Terminal window open. This optional parameter launches the Docker container in daemon mode.
Here’s an explanation of the parameters: -d Also, if you downloaded a different Docker image, replace /mssql/server:2019-latest with the one you downloaded. Run the following command to launch an instance of the Docker image you just downloaded: docker run -d -name sql_server_demo -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=reallyStrongPwd123' -p 1433:1433 /mssql/server:2019-latestīut of course, use your own name and password.