Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 6a027d3

Browse files
authored
Merge pull request #11491 from v-rihow/sql-server-linux-machine-learning-services-container
edit pass: sql-server-linux-machine-learning-services-container
2 parents 10a8778 + 8f14f20 commit 6a027d3

2 files changed

Lines changed: 31 additions & 31 deletions

File tree

docs/includes/sql-server-linux-change-docker-password.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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:
22

33
1. Choose a strong password to use for the SA user.
44

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:
66

77
```bash
88
sudo docker exec -it sql1 /opt/mssql-tools/bin/sqlcmd \

docs/linux/sql-server-linux-machine-learning-services-container.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Run SQL Server Machine Learning Services in a Container | Microsoft Docs
2+
title: Run SQL Server Machine Learning Services in a container | Microsoft Docs
33
description: This tutorial shows you how to use SQL Server Machine Learning Services in a Linux container running on Docker.
44
author: uc-msft
55
ms.author: umajay
@@ -10,58 +10,58 @@ ms.technology: linux
1010
ms.collection: linux-container
1111
moniker: ">= sql-server-linux-ver15 || =sqlallproducts-allversions"
1212
---
13-
# Run SQL Server Machine Learning Services in a Container
13+
# Run SQL Server Machine Learning Services in a container
1414

1515
[!INCLUDE[appliesto-ss-xxxx-xxxx-xxx-md-linuxonly](../includes/appliesto-ss-xxxx-xxxx-xxx-md-linuxonly.md)]
1616

17-
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:
1818

1919
> [!div class="checklist"]
2020
> * 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.
2525
2626
## Prerequisites
2727

2828
* 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.
3131
* Minimum of 2 GB of RAM.
3232
* [System requirements for SQL Server on Linux](sql-server-linux-setup.md#system).
3333

3434
## Clone the mssql-docker repository
3535

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.
3737

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:
4040

4141
```bash
4242
git clone https://github.com/microsoft/mssql-docker mssql-docker
4343
```
4444

45-
## Build SQL Server Linux container image with Machine Learning Services
45+
## Build a SQL Server Linux container image with Machine Learning Services
4646

47-
1. Change directory to the mssql-mlservices directory.
47+
1. Change the directory to the mssql-mlservices directory:
4848

4949
```bash
5050
cd mssql-docker/linux/preview/examples/mssql-mlservices
5151
```
5252

53-
1. Execute build.sh script.
53+
1. Run the build.sh script:
5454

5555
```bash
5656
./build.sh
5757
```
5858

5959
> [!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.
6161

62-
## Run SQL Server Linux container image with Machine Learning Services
62+
## Run the SQL Server Linux container image with Machine Learning Services
6363

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:
6565

6666
```bash
6767
export MSSQL_PID='Developer'
@@ -70,24 +70,24 @@ This tutorial demonstrates how to build a Docker container with SQL Server Machi
7070
export PATH_TO_MSSQL='/home/mssql/'
7171
```
7272

73-
1. Execute run.sh script.
73+
1. Run the run.sh script:
7474

7575
```bash
7676
./run.sh
7777
```
7878

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**.
8080

8181
> [!NOTE]
8282
> The process for running production SQL Server editions in 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.
8383

84-
1. To view your Docker containers, use the `docker ps` command.
84+
1. To view your Docker containers, run the `docker ps` command:
8585

8686
```bash
8787
sudo docker ps -a
8888
```
8989

90-
1. If the **STATUS** column shows a status of **Up**, then 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).
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).
9191

9292
```bash
9393
$ sudo docker ps -a
@@ -106,15 +106,15 @@ This tutorial demonstrates how to build a Docker container with SQL Server Machi
106106

107107
## Execute R / Python scripts from Transact-SQL
108108

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:
110110

111111
```sql
112112
EXEC sp_configure 'external scripts enabled', 1
113113
RECONFIGURE WITH OVERRIDE
114114
go
115115
```
116116

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:
118118

119119
```sql
120120
execute sp_execute_external_script
@@ -147,11 +147,11 @@ This tutorial demonstrates how to build a Docker container with SQL Server Machi
147147
In this tutorial, you learned to do the following:
148148

149149
> [!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
155155

156156
Next, review other Docker configuration and troubleshooting scenarios:
157157

0 commit comments

Comments
 (0)