Explain change for multi-line PowerShell commands
Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
This commit is contained in:
parent
89230c73dc
commit
9bb08eeadd
@ -38,7 +38,7 @@ For now, we will create the network first and attach the MySQL container at star
|
|||||||
```
|
```
|
||||||
|
|
||||||
1. Start a MySQL container and attach it the network. We're also going to define a few environment variables that the
|
1. Start a MySQL container and attach it the network. We're also going to define a few environment variables that the
|
||||||
database will use to initialize the database (see the "Environment Variables" section in the [MySQL Docker Hub listing](https://hub.docker.com/_/mysql/)).
|
database will use to initialize the database (see the "Environment Variables" section in the [MySQL Docker Hub listing](https://hub.docker.com/_/mysql/)) (replace the ` \ ` characters with `` ` `` in Windows PowerShell).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -d \
|
docker run -d \
|
||||||
@ -165,7 +165,7 @@ The todo app supports the setting of a few environment variables to specify MySQ
|
|||||||
|
|
||||||
With all of that explained, let's start our dev-ready container!
|
With all of that explained, let's start our dev-ready container!
|
||||||
|
|
||||||
1. We'll specify each of the environment variables above, as well as connect the container to our app network.
|
1. We'll specify each of the environment variables above, as well as connect the container to our app network (replace the ` \ ` characters with `` ` `` in Windows PowerShell).
|
||||||
|
|
||||||
```bash hl_lines="3 4 5 6 7"
|
```bash hl_lines="3 4 5 6 7"
|
||||||
docker run -dp 3000:3000 \
|
docker run -dp 3000:3000 \
|
||||||
|
@ -36,7 +36,7 @@ So, let's do it!
|
|||||||
|
|
||||||
1. Make sure you don't have any previous `getting-started` containers running.
|
1. Make sure you don't have any previous `getting-started` containers running.
|
||||||
|
|
||||||
1. Run the following command. We'll explain what's going on afterwards:
|
1. Run the following command (replace the ` \ ` characters with `` ` `` in Windows PowerShell). We'll explain what's going on afterwards:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -dp 3000:3000 \
|
docker run -dp 3000:3000 \
|
||||||
|
@ -49,7 +49,7 @@ And now, we'll start migrating a service at a time into the compose file.
|
|||||||
|
|
||||||
## Defining the App Service
|
## Defining the App Service
|
||||||
|
|
||||||
To remember, this was the command we were using to define our app container.
|
To remember, this was the command we were using to define our app container (replace the ` \ ` characters with `` ` `` in Windows PowerShell).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -dp 3000:3000 \
|
docker run -dp 3000:3000 \
|
||||||
@ -145,7 +145,7 @@ docker run -dp 3000:3000 \
|
|||||||
|
|
||||||
### Defining the MySQL Service
|
### Defining the MySQL Service
|
||||||
|
|
||||||
Now, it's time to define the MySQL service. The command that we used for that container was the following:
|
Now, it's time to define the MySQL service. The command that we used for that container was the following (replace the ` \ ` characters with `` ` `` in Windows PowerShell):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -d \
|
docker run -d \
|
||||||
|
Loading…
Reference in New Issue
Block a user