You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/includes/sql-server-linux-change-docker-password.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
The **SA** account is a system administrator on the SQL Server instance that gets created during setup. After creating your SQL Server container, the `MSSQL_SA_PASSWORD` environment variable you specified is discoverable by running `echo $MSSQL_SA_PASSWORD` in the container. For security purposes, change your SA password.
1
+
The **SA** account is a system administrator on the SQL Server instance that's created during setup. After you create your SQL Server container, the `MSSQL_SA_PASSWORD` environment variable you specified is discoverable by running `echo $MSSQL_SA_PASSWORD` in the container. For security purposes, change your SA password:
2
2
3
3
1. Choose a strong password to use for the SA user.
4
4
5
-
1. Use `docker exec` to run **sqlcmd** to change the password using Transact-SQL. Replace `<YourStrong!Passw0rd>` and `<YourNewStrong!Passw0rd>` with your own password values.
5
+
1. Use `docker exec` to run the **sqlcmd**utility to change the password through a Transact-SQL statement. Replace `<YourStrong!Passw0rd>` and `<YourNewStrong!Passw0rd>` with your own password values:
This tutorial demonstrates how to build a Docker container with SQL Server Machine Learning Services and run Machine Learning Scripts from Transact-SQL.
17
+
This tutorial demonstrates how to build a Docker container by using SQL Server Machine Learning Services, and how to run Machine Learning scripts from Transact-SQL. Coverage includes the following tasks:
18
18
19
19
> [!div class="checklist"]
20
20
> * Clone the mssql-docker repository.
21
-
> * Build SQL Server Linux container image with Machine Learning Services.
22
-
> * Run SQL Server Linux container image with Machine Learning Services.
23
-
> * Run R or Python scripts using Transact-SQL statements.
24
-
> * Stop and remove the SQL Server Linux container.
21
+
> * Build a SQL Server Linux container image with Machine Learning Services.
22
+
> * Run the SQL Server Linux container image with Machine Learning Services.
23
+
> * Run R or Python scripts by using Transact-SQL statements.
24
+
> * Stop and remove the SQL Server Linux container.
25
25
26
26
## Prerequisites
27
27
28
28
* Git command-line interface.
29
-
* Docker Engine 1.8+ on any supported Linux distribution or Docker for Mac/Windows. For more information, see [Install Docker](https://docs.docker.com/engine/installation/).
30
-
* Minimum of 2 GB of disk space.
29
+
* Docker Engine 1.8+ on any supported Linux distribution, or Docker for Mac/Windows. For more information, see [Install Docker](https://docs.docker.com/engine/installation/).
30
+
* Minimum of 2 gigabytes (GB) of disk space.
31
31
* Minimum of 2 GB of RAM.
32
32
*[System requirements for SQL Server on Linux](sql-server-linux-setup.md#system).
33
33
34
34
## Clone the mssql-docker repository
35
35
36
-
1. Open a bash terminal on Linux/Mac or WSL terminal on Windows.
36
+
1. Open a Bash terminal on Linux or Mac, or open a WSL terminal on Windows.
37
37
38
-
1. Create a local directory to hold a copy of the mssql-docker repository locally.
39
-
1. Run the git clone command to clone the mssql-docker repository.
38
+
1. Create a local directory to hold a local copy of the mssql-docker repository.
39
+
1. Run the git clone command to clone the mssql-docker repository:
## Build SQL Server Linux container image with Machine Learning Services
45
+
## Build a SQL Server Linux container image with Machine Learning Services
46
46
47
-
1. Change directory to the mssql-mlservices directory.
47
+
1. Change the directory to the mssql-mlservices directory:
48
48
49
49
```bash
50
50
cd mssql-docker/linux/preview/examples/mssql-mlservices
51
51
```
52
52
53
-
1. Execute build.sh script.
53
+
1. Run the build.sh script:
54
54
55
55
```bash
56
56
./build.sh
57
57
```
58
58
59
59
> [!NOTE]
60
-
>Building the docker image requires installing packages that are several GBs in size. The script may take up to 20 minutes to complete depending on network bandwidth.
60
+
>To build the Docker image, you must install packages that are several GBs in size. The script may take up to 20 minutes to finish running, depending on network bandwidth.
61
61
62
-
## Run SQL Server Linux container image with Machine Learning Services
62
+
## Run the SQL Server Linux container image with Machine Learning Services
63
63
64
-
1. Set environment variables before running the container. Set PATH_TO_MSSQL environment variable to a host directory.
64
+
1. Set your environment variables before running the container. Set the PATH_TO_MSSQL environment variable to a host directory:
65
65
66
66
```bash
67
67
export MSSQL_PID='Developer'
@@ -70,24 +70,24 @@ This tutorial demonstrates how to build a Docker container with SQL Server Machi
70
70
export PATH_TO_MSSQL='/home/mssql/'
71
71
```
72
72
73
-
1. Execute run.sh script.
73
+
1. Run the run.sh script:
74
74
75
75
```bash
76
76
./run.sh
77
77
```
78
78
79
-
This command creates a SQL Server container with Machine Learning Services with the Developer edition (default). SQL Server port **1433** is exposed on the host as port **1401**.
79
+
This command creates a SQL Server container with Machine Learning Services, using the Developer edition (default). SQL Server port **1433** is exposed on the host as port **1401**.
80
80
81
81
> [!NOTE]
82
82
> The process forrunning production SQL Server editionsin containers is slightly different. For more information, see [Configure SQL Server container images on Docker](sql-server-linux-configure-docker.md). If you use the same container names and ports, the rest of this walk-through still works with production containers.
83
83
84
-
1. To view your Docker containers, use the `docker ps` command.
84
+
1. To view your Docker containers, run the `docker ps` command:
85
85
86
86
```bash
87
87
sudo docker ps -a
88
88
```
89
89
90
-
1. If the **STATUS** column shows a status of **Up**, thenSQL Server is running in the container and listening on the port specified in the **PORTS** column. If the **STATUS** column for your SQL Server container shows **Exited**, see the [Troubleshooting section of the configuration guide](sql-server-linux-configure-docker.md#troubleshooting).
90
+
1. If the **STATUS** column shows a status of **Up**, SQL Server is running in the container and listening on the port specified in the **PORTS** column. If the **STATUS** column for your SQL Server container shows **Exited**, see the [Troubleshooting section of the configuration guide](sql-server-linux-configure-docker.md#troubleshooting).
91
91
92
92
```bash
93
93
$ sudo docker ps -a
@@ -106,15 +106,15 @@ This tutorial demonstrates how to build a Docker container with SQL Server Machi
106
106
107
107
## Execute R / Python scripts from Transact-SQL
108
108
109
-
1. Connect to SQL Server in the container and enable the external script configuration option by running the following T-SQL statement.
109
+
1. Connect to SQL Server in the container, and enable the external script configuration option by running the following T-SQL statement:
110
110
111
111
```sql
112
112
EXEC sp_configure 'external scripts enabled', 1
113
113
RECONFIGURE WITH OVERRIDE
114
114
go
115
115
```
116
116
117
-
1. Verify Machine Learning Services is working by running the following simple R/Python sp_execute_external_script.
117
+
1. Verify that Machine Learning Services is working by running the following simple R/Python sp_execute_external_script:
118
118
119
119
```sql
120
120
execute sp_execute_external_script
@@ -147,11 +147,11 @@ This tutorial demonstrates how to build a Docker container with SQL Server Machi
147
147
In this tutorial, you learned to do the following:
148
148
149
149
> [!div class="checklist"]
150
-
>* Clone the mssql-docker repository.
151
-
>* Build SQL Server Linux container image with Machine Learning Services.
152
-
>* Run SQL Server Linux container image with Machine Learning Services.
153
-
>* Run R or Python scripts using Transact-SQL statements.
154
-
>* Stop and remove the SQL Server Linux container.
150
+
>* Clone the mssql-docker repository
151
+
>* Build SQL Server Linux container image with Machine Learning Services
152
+
>* Run SQL Server Linux container image with Machine Learning Services
153
+
>* Run R or Python scripts using Transact-SQL statements
154
+
>* Stop and remove the SQL Server Linux container
155
155
156
156
Next, review other Docker configuration and troubleshooting scenarios:
0 commit comments