Microsoft Linux SQL 2017 (Ubuntu) Container
1.0K
Image contains the MSSQL 2017 Linux (Ubuntu 16.04) Server, with sql tools (sqlcmd, bcp)
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.
$ docker run --name container_name -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=strongpassword' -p 1433:1433 -d vkitpro/microsoft-linux-sql2017:latest
$ docker exec -it container_name /bin/bash
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>
sudo docker exec -it container_name /opt/mssql/bin/mssql-conf set sqlagent.enabled true
sudo docker exec -it container_name /opt/mssql/bin/mssql-conf set memory.memorylimitmb 28000
sudo docker exec -it container_name /opt/mssql-tools/bin/sqlcmd \ -S localhost -U SA -P '<YourStrong!Passw0rd>' \ -Q 'ALTER LOGIN SA WITH PASSWORD="<YourNewStrong!Passw0rd>"'
Content type
Image
Digest
Size
425.3 MB
Last updated
almost 6 years ago
docker pull vkitpro/microsoft-linux-sql2017