10

microsoft-mssql-server docker image 镜像

 3 years ago
source link: https://hub.docker.com/r/microsoft-mssql-server
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
 docker pull microsoft-mssql-server 


Featured Tags

  • 2017-latest
    docker pull mcr.microsoft.com/mssql/server:2017-latest

  • 2019-latest
    docker pull mcr.microsoft.com/mssql/server:2019-latest

  • 2017-CU21-ubuntu-16.04
    docker pull mcr.microsoft.com/mssql/server:2017-CU21-ubuntu-16.04

  • 2019-CU8-ubuntu-16.04
    docker pull mcr.microsoft.com/mssql/server:2019-CU8-ubuntu-16.04

About this Image

Official container images for Microsoft SQL Server on Linux for Docker Engine.

How to use this Image

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.

Configuration

Requirements

  • This image requires Docker Engine 1.8+ in any of their supported platforms.

  • At least 2GB of RAM (3.25 GB prior to 2017-CU2). Make sure to assign enough memory to the Docker VM if you're running on Docker for Mac or Windows.

  • Requires the following environment flags

    ACCEPT_EULA=Y

    SA_PASSWORD=<your_strong_password>

    MSSQL_PID=<your_product_id | edition_name> (default: Developer)

  • A strong system administrator (SA) password: At least 8 characters including uppercase, lowercase letters, base-10 digits and/or non-alphanumeric symbols.

Environment Variables

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:

  • Developer : This will run the container using the Developer Edition (this is the default if no MSSQL_PID environment variable is supplied)
  • Express : This will run the container using the Express Edition
  • Standard : This will run the container using the Standard Edition
  • Enterprise : This will run the container using the Enterprise Edition
  • EnterpriseCore : This will run the container using the Enterprise Edition Core : 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.

Related Repos

SQL Server for Windows Container: microsoft/mssql-server-windows-developer SQL Server Express for Windows Containers: microsoft/mssql-server-windows-express SQL Server Command Line Tools for Linux: microsoft/mssql-tools

Full Tag Listing

Linux Images

Tags Architecture Dockerfile OsVersion CreatedTime LastUpdatedTime
latest amd64 No Dockerfile Ubuntu 16.04 09/21/2018 01:00:16 10/07/2020 17:38:37
2019-latest amd64 No Dockerfile Ubuntu 16.04 11/07/2018 05:01:10 10/07/2020 17:39:17
2017-latest amd64 No Dockerfile Ubuntu 16.04 09/21/2018 01:00:25 09/10/2020 22:46:11
2019-CU8-ubuntu-16.04 amd64 No Dockerfile Ubuntu 16.04 10/07/2020 17:40:27 10/07/2020 17:40:27
2019-CU6-ubuntu-16.04 amd64 No Dockerfile Ubuntu 16.04 08/05/2020 17:05:10 08/05/2020 17:05:10
2019-CU5-ubuntu-16.04 amd64 No Dockerfile Ubuntu 16.04 06/22/2020 18:21:51 06/22/2020 18:21:51
2019-CU4-ubuntu-16.04 amd64 No Dockerfile Ubuntu 16.04 03/31/2020 16:57:33 03/31/2020 16:57:33
2019-CU3-ubuntu-16.04 amd64 No Dockerfile Ubuntu 16.04 03/12/2020 22:50:30 03/12/2020 22:50:30
2019-CU2-ubuntu-16.04 amd64 No Dockerfile Ubuntu 16.04 02/14/2020 15:57:52 02/14/2020 15:57:52
2019-CU1-ubuntu-16.04 amd64 No Dockerfile Ubuntu 16.04 01/08/2020 00:14:31 01/08/2020 00:14:31
2019-GDR1-ubuntu-16.04 amd64 No Dockerfile Ubuntu 16.04 11/02/2019 03:57:26 11/02/2019 03:57:26
2019-GA-ubuntu-16.04 amd64 No Dockerfile Ubuntu 16.04 11/02/2019 02:31:25 11/02/2019 02:31:25
2017-CU21-ubuntu-16.04 amd64 No Dockerfile Ubuntu 16.04 07/01/2020 19:20:33 07/01/2020 19:20:33
2017-CU20-ubuntu-16.04 amd64 No Dockerfile Ubuntu 16.04 04/10/2020 00:38:00 04/10/2020 00:38:00
2017-CU19-ubuntu-16.04 amd64 No Dockerfile Ubuntu 16.04 02/06/2020 20:21:01 02/06/2020 20:21:01
2017-CU18-ubuntu-16.04 amd64 No Dockerfile Ubuntu 16.04 12/09/2019 21:57:32 12/09/2019 21:57:32
2017-CU17-ubuntu amd64 No Dockerfile Ubuntu 16.04 11/12/2019 20:17:45 11/12/2019 20:17:45
2017-CU16-ubuntu amd64 No Dockerfile Ubuntu 16.04 08/12/2019 22:19:30 08/12/2019 22:19:30
2017-CU15-ubuntu amd64 No Dockerfile Ubuntu 16.04 05/23/2019 22:30:27 05/23/2019 22:30:27
2017-CU14-ubuntu amd64 No Dockerfile Ubuntu 16.04 03/25/2019 22:37:07 03/25/2019 22:37:07
2017-CU13-ubuntu amd64 No Dockerfile Ubuntu 16.04 12/18/2018 18:50:25 12/18/2018 18:50:25
2017-CU12-ubuntu amd64 No Dockerfile Ubuntu 16.04 10/24/2018 18:11:57 10/24/2018 18:11:57
2017-CU11-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/21/2018 01:00:56 09/21/2018 01:00:56
2017-CU10-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/13/2018 03:18:19 09/13/2018 03:18:19
2017-CU9-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/10/2018 23:26:19 09/10/2018 23:26:19
2017-CU8-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/10/2018 23:28:14 09/10/2018 23:28:14
2017-CU7-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/10/2018 23:30:43 09/10/2018 23:30:43
2017-CU6-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/10/2018 23:33:09 09/10/2018 23:33:09
2017-CU5-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/10/2018 23:35:08 09/10/2018 23:35:08
2017-CU4-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/10/2018 23:37:19 09/10/2018 23:37:19
2017-CU3-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/10/2018 23:39:24 09/10/2018 23:39:24
2017-CU2-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/10/2018 23:41:27 09/10/2018 23:41:27
2017-CU1-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/10/2018 23:43:12 09/10/2018 23:43:12
2017-GDR-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/10/2018 23:45:29 09/10/2018 23:45:29
2017-GA-ubuntu amd64 No Dockerfile Ubuntu 16.04 09/10/2018 23:52:48 09/10/2018 23:52:48

You can retrieve a list of all available tags for mssql/server at https://mcr.microsoft.com/v2/mssql/server/tags/list

Notes:

  • GA = General Availability - when the version is officially available and supported.
  • CU = Cumulative Update - a periodic release that includes bug fixes, security fixes, and occasionally a small feature.
  • CTP = Community Technology Preview - a preview release that precedes the GA of an upcoming new version.
  • GDR = General Distribution Release - a release that contains ONLY security fixes.

Support

View issues on the mssql-docker GitHub Project.

Known Issues

  • Mounting a volume does not work on Docker for Mac

License

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.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK