mirror of https://github.com/docker/docs.git
parent
42142d3ab6
commit
b40a8effd4
|
@ -101,7 +101,7 @@ In order to build the [container image](../get-started/overview.md/#docker-objec
|
|||
$ docker build -t getting-started .
|
||||
```
|
||||
|
||||
The `docker build` command uses the Dockerfile to build a new container image. You might have noticed that Docker downloaded a lot of "layers". This is because you instructed the builder that you wanted to start from the `node:12-alpine` image. But, since you didn't have that on your machine, Docker needed to download the image.
|
||||
The `docker build` command uses the Dockerfile to build a new container image. You might have noticed that Docker downloaded a lot of "layers". This is because you instructed the builder that you wanted to start from the `node:18-alpine` image. But, since you didn't have that on your machine, Docker needed to download the image.
|
||||
|
||||
After Docker downloaded the image, the instructions from the Dockerfile copied in your application and used `yarn` to install your application's dependencies. The `CMD` directive specifies the default command to run when starting a container from this image.
|
||||
|
||||
|
@ -143,4 +143,4 @@ In this short section, you learned the basics about creating a Dockerfile to bui
|
|||
|
||||
Next, you're going to make a modification to your app and learn how to update your running application with a new image. Along the way, you'll learn a few other useful commands.
|
||||
|
||||
[Update the application](03_updating_app.md){: .button .primary-btn}
|
||||
[Update the application](03_updating_app.md){: .button .primary-btn}
|
||||
|
|
Loading…
Reference in New Issue