2017-latest-ubuntu
docker pull mcr.microsoft.com/mssql/server:2017-latest-ubuntu
2019-CTP3.0-ubuntu
docker pull mcr.microsoft.com/mssql/server:2019-CTP3.0-ubuntu
Official container images for Microsoft SQL Server on Linux for Docker Engine.
Start a mssql-server instance using the CU8 release IMPORTANT NOTE: If you are using PowerShell on Windows to run these commands use double quotes instead of single quotes.
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=yourStrong(!)Password' -p 1433:1433 -d mcr.microsoft.com/mssql/server:2017-CU8-ubuntu
Start a mssql-server instance using the latest update for SQL Server 2017
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=yourStrong(!)Password' -p 1433:1433 -d mcr.microsoft.com/mssql/server:2017-latest
Start a mssql-server instance running as the SQL Express edition
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=yourStrong(!)Password' -e 'MSSQL_PID=Express' -p 1433:1433 -d mcr.microsoft.com/mssql/server:2017-latest-ubuntu
Connect to Microsoft SQL Server You can connect to the SQL Server using the sqlcmd tool inside of the container by using the following command on the host:
docker exec -it <container_id|container_name> /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P <your_password>
You can also use the tools in an entrypoint.sh script to do things like create databases or logins, attach databases, import data, or other setup tasks. See this example of using an entrypoint.sh script to create a database and schema and bcp in some data.
You can connect to the SQL Server instance in the container from outside the container by using various command line and GUI tools on the host or remote computers. See the Connect and Query topic in the SQL Server on Linux documentation.
ACCEPT_EULA=YSA_PASSWORD=<your_strong_password>MSSQL_PID=<your_product_id> (default: Developer)You can use environment variables to configure SQL Server on Linux Containers.
ACCEPT_EULA confirms your acceptance of the End-User Licensing Agreement.
SA_PASSWORD is the database system administrator (userid = 'sa') password used to connect to SQL Server once the container is running. Important note: This password needs to include at least 8 characters of at least three of these four categories: uppercase letters, lowercase letters, numbers and non-alphanumeric symbols.
MSSQL_PID is the Product ID (PID) or Edition that the container will run with. Acceptable values:
This will run the container with the edition that is associated with the PID
For a complete list of environment variables that can be used, refer to the documentation here.
-SQL Server for Windows Container: microsoft/mssql-server-windows-developer -SQL Server Express for Windows Containers: microsoft/mssql-server-windows-express
Tags Architecture Dockerfile OsVersion CreatedTime LastUpdatedTime latest amd64 No Dockerfile Ubuntu 16.04 09/10/2018 23:10:08 09/21/2018 01:01:16 latest-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/10/2018 23:25:13 09/21/2018 01:18:21 2017-latest-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/10/2018 23:31:56 05/23/2019 22:30:28 2017-CU14-ubuntu amd64 No Dockerfile Ubuntu 16.04 03/25/2019 22:37:09 03/25/2019 22:37:09 2017-CU13-ubuntu amd64 No Dockerfile Ubuntu 16.04 12/18/2018 18:50:26 12/18/2018 18:50:26 2017-CU12-ubuntu amd64 No Dockerfile Ubuntu 16.04 10/24/2018 18:15:30 10/24/2018 18:15:30 2017-CU11-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/21/2018 01:14:11 09/21/2018 01:14:11 2017-CU10-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/10/2018 23:35:12 09/13/2018 03:34:36 2017-CU9-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/10/2018 23:38:14 09/10/2018 23:38:14 2017-CU8-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/10/2018 23:28:15 09/10/2018 23:28:15 2017-CU7-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/10/2018 23:50:52 09/10/2018 23:50:52 2017-CU6-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/10/2018 23:53:58 09/10/2018 23:53:58 2017-CU5-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/10/2018 23:35:10 09/10/2018 23:35:10 2017-CU4-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/11/2018 00:03:12 09/11/2018 00:03:12 2017-CU3-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/11/2018 00:12:58 09/11/2018 00:12:58 2017-CU2-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/10/2018 23:41:31 09/10/2018 23:41:31 2017-CU1-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/10/2018 23:43:16 09/10/2018 23:43:16 2017-GDR-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/11/2018 00:19:06 09/11/2018 00:19:06 2017-GA-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/11/2018 00:28:50 09/11/2018 00:28:50
You can retrieve a list of all available tags for mssql/server at https://mcr.microsoft.com/v2/mssql/server/tags/list
Notes:
View issues on the mssql-docker GitHub Project.
By passing the value "Y" to the environment variable "ACCEPT_EULA", you are expressing that you have a valid and existing license for the edition and version of SQL Server that you intend to use. You also agree that your use of SQL Server software running in a Docker container image will be governed by the terms of your SQL Server license.
To specify the edition, use the MSSQL_PID environment variable. Details can be found in the "Environment Variables" section below.
SQL Server Developer edition lets developers build any kind of application on top of SQL Server. It includes all the functionality of Enterprise edition, but is licensed for use as a development and test system, not as a production server. SQL Server Developer Edition cannot be used in a production environment. The SQL Server 2017 Developer Edition license terms are located here. </container_id|container_name>
Content type
Image
Digest
Size
446.8 MB
Last updated
about 7 years ago
docker pull adordm/microsoft-sql-server:2017-cu14-ubuntu