

Throughout the remainder of this topic, bash and PowerShell code blocks are provided for convenience. The docker run command fails if you use the wrong one. The only difference between the bash (Linux/macOS) example and the PowerShell (Windows) example is single quotes versus double-quotes around the environment variables. If you are using Docker for Windows, use the following command from an elevated PowerShell command-prompt:ĭocker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=" -e "MSSQL_PID=Developer" -cap-add SYS_PTRACE -p 1401:1433 -d microsoft/mssql-server-linux Note

To run the container image with Docker, you can use the following command from a bash shell (Linux/macOS):ĭocker run -e 'ACCEPT_EULA=Y' -e 'MSSQL_SA_PASSWORD=' -e 'MSSQL_PID=Developer' -cap-add SYS_PTRACE -p 1401:1433 -d microsoft/mssql-server-linux.

