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/linux/quickstart-install-connect-docker.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,7 @@ Before starting the following steps, make sure that you've selected your preferr
112
112
113
113
::: zone pivot="cs1-bash"
114
114
```bash
115
-
sudo docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=<YourStrong@Passw0rd>" \
115
+
sudo docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=<YourStrong@Passw0rd>" \
116
116
-p 1433:1433 --name sql1 --hostname sql1 \
117
117
-d \
118
118
mcr.microsoft.com/mssql/server:2017-latest
@@ -125,7 +125,7 @@ Before starting the following steps, make sure that you've selected your preferr
125
125
> If you are using PowerShell Core, replace the double quotes with single quotes.
126
126
127
127
```PowerShell
128
-
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=<YourStrong@Passw0rd>" `
128
+
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=<YourStrong@Passw0rd>" `
129
129
-p 1433:1433 --name sql1 --hostname sql1 `
130
130
-d `
131
131
mcr.microsoft.com/mssql/server:2017-latest
@@ -134,7 +134,7 @@ Before starting the following steps, make sure that you've selected your preferr
134
134
135
135
::: zone pivot="cs1-cmd"
136
136
```cmd
137
-
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=<YourStrong@Passw0rd>" `
137
+
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=<YourStrong@Passw0rd>" `
138
138
-p 1433:1433 --name sql1 --hostname sql1 `
139
139
-d `
140
140
mcr.microsoft.com/mssql/server:2017-latest
@@ -150,7 +150,7 @@ Before starting the following steps, make sure that you've selected your preferr
150
150
| Parameter | Description |
151
151
|-----|-----|
152
152
|**-e "ACCEPT_EULA=Y"**| Set the `ACCEPT_EULA` variable to any value to confirm your acceptance of the End-User Licensing Agreement. Required setting for the [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] image. |
153
-
|**-e "SA_PASSWORD=\<YourStrong@Passw0rd\>"**| Specify your own strong password that is at least eight characters and meets the [SQL Server password requirements](../relational-databases/security/password-policy.md). Required setting for the [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] image. |
153
+
|**-e "MSSQL_SA_PASSWORD=\<YourStrong@Passw0rd\>"**| Specify your own strong password that is at least eight characters and meets the [SQL Server password requirements](../relational-databases/security/password-policy.md). Required setting for the [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] image. |
154
154
|**-p 1433:1433**| Map a TCP port on the host environment (first value) with a TCP port in the container (second value). In this example, [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] is listening on TCP 1433 in the container and this container port is then exposed to TCP port 1433 on the host. |
155
155
|**--name sql1**| Specify a custom name for the container rather than a randomly generated one. If you run more than one container, you can't reuse this same name. |
156
156
|**--hostname sql1**| Used to explicitly set the container hostname. If you don't specify the hostname, it defaults to the container ID, which is a randomly generated system GUID. |
@@ -201,7 +201,7 @@ Before starting the following steps, make sure that you've selected your preferr
201
201
202
202
Setting `--hostname` and `--name` to the same value is a good way to easily identify the target container.
203
203
204
-
1. As a final step, change your SA password because the `SA_PASSWORD` is visible in `ps -eax` output and stored in the environment variable of the same name. See steps below.
204
+
1. As a final step, change your SA password because the `MSSQL_SA_PASSWORD` is visible in `ps -eax` output and stored in the environment variable of the same name. See steps below.
205
205
206
206
::: moniker-end
207
207
<!--SQL Server 2019 on Linux-->
@@ -244,7 +244,7 @@ Before starting the following steps, make sure that you've selected your preferr
244
244
245
245
::: zone pivot="cs1-bash"
246
246
```bash
247
-
sudo docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=<YourStrong@Passw0rd>" \
247
+
sudo docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=<YourStrong@Passw0rd>" \
248
248
-p 1433:1433 --name sql1 --hostname sql1 \
249
249
-d \
250
250
mcr.microsoft.com/mssql/server:2019-latest
@@ -257,7 +257,7 @@ Before starting the following steps, make sure that you've selected your preferr
257
257
> If you are using PowerShell Core, replace the double quotes with single quotes.
258
258
259
259
```PowerShell
260
-
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=<YourStrong@Passw0rd>" `
260
+
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=<YourStrong@Passw0rd>" `
261
261
-p 1433:1433 --name sql1 --hostname sql1 `
262
262
-d `
263
263
mcr.microsoft.com/mssql/server:2019-latest
@@ -266,7 +266,7 @@ Before starting the following steps, make sure that you've selected your preferr
266
266
267
267
::: zone pivot="cs1-cmd"
268
268
```cmd
269
-
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=<YourStrong@Passw0rd>" `
269
+
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=<YourStrong@Passw0rd>" `
270
270
-p 1433:1433 --name sql1 --hostname sql1 `
271
271
-d `
272
272
mcr.microsoft.com/mssql/server:2019-latest
@@ -282,7 +282,7 @@ Before starting the following steps, make sure that you've selected your preferr
282
282
| Parameter | Description |
283
283
|-----|-----|
284
284
|**-e "ACCEPT_EULA=Y"**| Set the `ACCEPT_EULA` variable to any value to confirm your acceptance of the End-User Licensing Agreement. Required setting for the [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] image. |
285
-
|**-e "SA_PASSWORD=\<YourStrong@Passw0rd\>"**| Specify your own strong password that is at least eight characters and meets the [SQL Server password requirements](../relational-databases/security/password-policy.md). Required setting for the [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] image. |
285
+
|**-e "MSSQL_SA_PASSWORD=\<YourStrong@Passw0rd\>"**| Specify your own strong password that is at least eight characters and meets the [SQL Server password requirements](../relational-databases/security/password-policy.md). Required setting for the [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] image. |
286
286
|**-p 1433:1433**| Map a TCP port on the host environment (first value) with a TCP port in the container (second value). In this example, [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] is listening on TCP 1433 in the container and this container port is then exposed to TCP port 1433 on the host. |
287
287
|**--name sql1**| Specify a custom name for the container rather than a randomly generated one. If you run more than one container, you can't reuse this same name. |
288
288
|**--hostname sql1**| Used to explicitly set the container hostname. If you don't specify the hostname, it defaults to the container ID, which is a randomly generated system GUID. |
@@ -333,7 +333,7 @@ Before starting the following steps, make sure that you've selected your preferr
333
333
334
334
Setting `--hostname` and `--name` to the same value is a good way to easily identify the target container.
335
335
336
-
1. As a final step, change your SA password because the `SA_PASSWORD` is visible in `ps -eax` output and stored in the environment variable of the same name. See steps below.
336
+
1. As a final step, change your SA password because the `MSSQL_SA_PASSWORD` is visible in `ps -eax` output and stored in the environment variable of the same name. See steps below.
337
337
338
338
::: moniker-end
339
339
<!--SQL Server 2022 on Linux-->
@@ -376,7 +376,7 @@ Before starting the following steps, make sure that you've selected your preferr
376
376
377
377
::: zone pivot="cs1-bash"
378
378
```bash
379
-
sudo docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=<YourStrong@Passw0rd>" \
379
+
sudo docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=<YourStrong@Passw0rd>" \
380
380
-p 1433:1433 --name sql1 --hostname sql1 \
381
381
-d \
382
382
mcr.microsoft.com/mssql/server:2022-latest
@@ -389,7 +389,7 @@ Before starting the following steps, make sure that you've selected your preferr
389
389
> If you are using PowerShell Core, replace the double quotes with single quotes.
390
390
391
391
```PowerShell
392
-
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=<YourStrong@Passw0rd>" `
392
+
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=<YourStrong@Passw0rd>" `
393
393
-p 1433:1433 --name sql1 --hostname sql1 `
394
394
-d `
395
395
mcr.microsoft.com/mssql/server:2022-latest
@@ -398,7 +398,7 @@ Before starting the following steps, make sure that you've selected your preferr
398
398
399
399
::: zone pivot="cs1-cmd"
400
400
```cmd
401
-
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=<YourStrong@Passw0rd>" `
401
+
docker run -e "ACCEPT_EULA=Y" -e "MSSQL_SA_PASSWORD=<YourStrong@Passw0rd>" `
402
402
-p 1433:1433 --name sql1 --hostname sql1 `
403
403
-d `
404
404
mcr.microsoft.com/mssql/server:2022-latest
@@ -414,7 +414,7 @@ Before starting the following steps, make sure that you've selected your preferr
414
414
| Parameter | Description |
415
415
|-----|-----|
416
416
|**-e "ACCEPT_EULA=Y"**| Set the `ACCEPT_EULA` variable to any value to confirm your acceptance of the End-User Licensing Agreement. Required setting for the [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] image. |
417
-
|**-e "SA_PASSWORD=\<YourStrong@Passw0rd\>"**| Specify your own strong password that is at least eight characters and meets the [SQL Server password requirements](../relational-databases/security/password-policy.md). Required setting for the [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] image. |
417
+
|**-e "MSSQL_SA_PASSWORD=\<YourStrong@Passw0rd\>"**| Specify your own strong password that is at least eight characters and meets the [SQL Server password requirements](../relational-databases/security/password-policy.md). Required setting for the [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] image. |
418
418
|**-p 1433:1433**| Map a TCP port on the host environment (first value) with a TCP port in the container (second value). In this example, [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] is listening on TCP 1433 in the container and this container port is then exposed to TCP port 1433 on the host. |
419
419
|**--name sql1**| Specify a custom name for the container rather than a randomly generated one. If you run more than one container, you can't reuse this same name. |
420
420
|**--hostname sql1**| Used to explicitly set the container hostname. If you don't specify the hostname, it defaults to the container ID, which is a randomly generated system GUID. |
@@ -465,14 +465,14 @@ Before starting the following steps, make sure that you've selected your preferr
465
465
466
466
Setting `--hostname` and `--name` to the same value is a good way to easily identify the target container.
467
467
468
-
1. As a final step, change your SA password because the `SA_PASSWORD` is visible in `ps -eax` output and stored in the environment variable of the same name. See steps below.
468
+
1. As a final step, change your SA password because the `MSSQL_SA_PASSWORD` is visible in `ps -eax` output and stored in the environment variable of the same name. See steps below.
469
469
470
470
::: moniker-end
471
471
472
472
<!-- This section was pasted in from includes/sql-server-linux-change-docker-password.md, to better support zone pivots. 2019/02/11 -->
473
473
## <aid="sapassword"></a> Change the system administrator password
474
474
475
-
The **SA** account is a system administrator on the [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] instance that gets created during setup. After you create your [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] container, the `SA_PASSWORD` environment variable you specified is discoverable by running `echo $SA_PASSWORD` in the container. For security purposes, change your SA password.
475
+
The **SA** account is a system administrator on the [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] instance that gets created during setup. After you create your [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] 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.
476
476
477
477
::: zone pivot="cs1-bash"
478
478
1. Choose a strong password to use for the SA user.
Copy file name to clipboardExpand all lines: docs/linux/quickstart-sql-server-containers-kubernetes.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,10 +35,10 @@ This quickstart uses [kubectl](https://kubernetes.io/docs/user-guide/kubectl/) t
35
35
36
36
1. Create an SA password in the Kubernetes cluster. Kubernetes can manage sensitive configuration information, like passwords as [secrets](https://kubernetes.io/docs/concepts/configuration/secret/).
37
37
38
-
2. To create a secret in Kubernetes named `mssql` that holds the value `MyC0m9l&xP@ssw0rd` for the `SA_PASSWORD`, run the following command. Remember to pick your own complex password:
38
+
2. To create a secret in Kubernetes named `mssql` that holds the value `MyC0m9l&xP@ssw0rd` for the `MSSQL_SA_PASSWORD`, run the following command. Remember to pick your own complex password:
@@ -153,11 +153,11 @@ You will create a manifest to describe the container, based on the SQL Server [m
153
153
value: "Developer"
154
154
- name: ACCEPT_EULA
155
155
value: "Y"
156
-
- name: SA_PASSWORD
156
+
- name: MSSQL_SA_PASSWORD
157
157
valueFrom:
158
158
secretKeyRef:
159
159
name: mssql
160
-
key: SA_PASSWORD
160
+
key: MSSQL_SA_PASSWORD
161
161
volumeMounts:
162
162
- name: mssqldb
163
163
mountPath: /var/opt/mssql
@@ -186,13 +186,13 @@ You will create a manifest to describe the container, based on the SQL Server [m
186
186
187
187
- `persistentVolumeClaim`: This value requires an entry for `claimName:` that maps to the name used for the persistent volume claim. This tutorial uses `mssql-data`.
188
188
189
-
- `name: SA_PASSWORD`: Configures the container image to set the SA password, as defined in this section.
189
+
- `name: MSSQL_SA_PASSWORD`: Configures the container image to set the SA password, as defined in this section.
190
190
191
191
```yaml
192
192
valueFrom:
193
193
secretKeyRef:
194
194
name: mssql
195
-
key: SA_PASSWORD
195
+
key: MSSQL_SA_PASSWORD
196
196
```
197
197
198
198
When Kubernetes deploys the container, it refers to the secret named `mssql` to get the value for the password.
@@ -114,7 +114,7 @@ For more information about routing ports, see [Configure port routing](sql-serve
114
114
If you're deploying SQL Server containers on a Kubernetes platform, see the example YAML deployment manifest below. In this example, the Kubernetes platform is Azure Kubernetes Service (AKS). Before running the sample deployment YAML script, create the necessary secret to store the `sa` password. A typical command is as shown below:
0 commit comments