reformat "get started" 06 - bind-mounts

The "docker build" example was written as an in-line example, but directly
followed by a full-stop at the end of the sentence, which made it easy to
confuse the extra `.` to be part of the command to run.

This moves it to a code block to allow the example to be highlighted, and
less confusing.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-03-31 23:51:22 +02:00
parent db82a1844d
commit dddeb5a51e
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 6 additions and 2 deletions

View File

@ -66,7 +66,7 @@ So, let's do it!
running `yarn install` to install _all_ dependencies and then running `yarn run dev`. If we look in the `package.json`, running `yarn install` to install _all_ dependencies and then running `yarn run dev`. If we look in the `package.json`,
we'll see that the `dev` script is starting `nodemon`. we'll see that the `dev` script is starting `nodemon`.
3. You can watch the logs using `docker logs -f <container-id>`. You'll know you're ready to go when you see this: 3. You can watch the logs using `docker logs`. You'll know you're ready to go when you see this:
```console ```console
$ docker logs -f <container-id> $ docker logs -f <container-id>
@ -96,7 +96,11 @@ So, let's do it!
{: .text-center } {: .text-center }
6. Feel free to make any other changes you'd like to make. When you're done, stop the container and build your new image 6. Feel free to make any other changes you'd like to make. When you're done, stop the container and build your new image
using `docker build -t getting-started .`. using:
```console
$ docker build -t getting-started .
```
Using bind mounts is _very_ common for local development setups. The advantage is that the dev machine doesn't need to have Using bind mounts is _very_ common for local development setups. The advantage is that the dev machine doesn't need to have
all of the build tools and environments installed. With a single `docker run` command, the dev environment is pulled and ready all of the build tools and environments installed. With a single `docker run` command, the dev environment is pulled and ready