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
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,23 +90,26 @@ Before starting the following steps, make sure that you have selected your prefe
90
90
```bash
91
91
sudo docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=<YourStrong@Passw0rd>" \
92
92
-p 1433:1433 --name sql1 \
93
-
-d mcr.microsoft.com/mssql/server:2017-latest
93
+
-d \
94
+
mcr.microsoft.com/mssql/server:2017-latest
94
95
```
95
96
::: zone-end
96
97
97
98
::: zone pivot="cs1-powershell"
98
99
```PowerShell
99
100
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=<YourStrong@Passw0rd>" `
100
101
-p 1433:1433 --name sql1 `
101
-
-d mcr.microsoft.com/mssql/server:2017-latest
102
+
-d `
103
+
mcr.microsoft.com/mssql/server:2017-latest
102
104
```
103
105
::: zone-end
104
106
105
107
::: zone pivot="cs1-cmd"
106
108
```cmd
107
109
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=<YourStrong@Passw0rd>" `
108
110
-p 1433:1433 --name sql1 `
109
-
-d mcr.microsoft.com/mssql/server:2017-latest
111
+
-d `
112
+
mcr.microsoft.com/mssql/server:2017-latest
110
113
```
111
114
::: zone-end
112
115
@@ -124,7 +127,8 @@ Before starting the following steps, make sure that you have selected your prefe
124
127
|**-e "SA_PASSWORD=\<YourStrong@Passw0rd\>"**| Specify your own strong password that is at least 8 characters and meets the [SQL Server password requirements](../relational-databases/security/password-policy.md). Required setting for the SQL Server image. |
125
128
|**-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, SQL Server is listening on TCP 1433 in the container and this is exposed to the port, 1433, on the host. |
126
129
|**--name sql1**| Specify a custom name for the container rather than a randomly generated one. If you run more than one container, you cannot reuse this same name. |
127
-
|**-d mcr.microsoft.com/mssql/server:2017-latest**| The SQL Server 2017 Linux container image. |
130
+
|**-d**| Run the container in the background (daemon) |
131
+
|** mcr.microsoft.com/mssql/server:2017-latest**| The SQL Server 2017 Linux container image. |
128
132
129
133
3. To view your Docker containers, use the `docker ps` command.
0 commit comments