Skip to content

Commit d1979f3

Browse files
authored
Merge pull request #4226 from larsw/patch-1
Split out the documentation of the -d option
2 parents 2f10fdd + 5ad98cb commit d1979f3

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

docs/linux/quickstart-install-connect-docker.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,23 +94,26 @@ Before starting the following steps, make sure that you have selected your prefe
9494
```bash
9595
sudo docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=<YourStrong@Passw0rd>" \
9696
-p 1433:1433 --name sql1 \
97-
-d mcr.microsoft.com/mssql/server:2017-latest
97+
-d \
98+
mcr.microsoft.com/mssql/server:2017-latest
9899
```
99100
::: zone-end
100101

101102
::: zone pivot="cs1-powershell"
102103
```PowerShell
103104
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=<YourStrong@Passw0rd>" `
104105
-p 1433:1433 --name sql1 `
105-
-d mcr.microsoft.com/mssql/server:2017-latest
106+
-d `
107+
mcr.microsoft.com/mssql/server:2017-latest
106108
```
107109
::: zone-end
108110

109111
::: zone pivot="cs1-cmd"
110112
```cmd
111113
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=<YourStrong@Passw0rd>" `
112114
-p 1433:1433 --name sql1 `
113-
-d mcr.microsoft.com/mssql/server:2017-latest
115+
-d `
116+
mcr.microsoft.com/mssql/server:2017-latest
114117
```
115118
::: zone-end
116119

@@ -128,7 +131,8 @@ Before starting the following steps, make sure that you have selected your prefe
128131
| **-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. |
129132
| **-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. |
130133
| **--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. |
131-
| **-d mcr.microsoft.com/mssql/server:2017-latest** | The SQL Server 2017 Linux container image. |
134+
| **-d** | Run the container in the background (daemon) |
135+
| ** mcr.microsoft.com/mssql/server:2017-latest** | The SQL Server 2017 Linux container image. |
132136

133137
3. To view your Docker containers, use the `docker ps` command.
134138

0 commit comments

Comments
 (0)