Working with Docker and Linux
To create a Docker container with an installation of SQL Server 2019 included, you'll require a local installation of Docker or Docker server access. Using an example for Windows, open Command Prompt (running Docker commands inside the PowerShell command line can lead to inconsistent results).
Check for existing Docker containers that are currently available and their status:
$ docker ps -a
Each container must have a unique name. Ensure that you use proper values for the password
, port(s), and container name before running the following command:
$ docker run -e "ACCEPT_EULA=Y" Â Â Â Â -e "MSSQL_SA_PASSWORD=<password>" Â Â Â Â -p <port:port> Â Â Â Â --name <container name> Â Â Â Â -d mcr.microsoft.com/mssql/server:2019-CTP3.2 ubuntu
View a list of your containers and verify that the container has not only been created, but is running...