Skip to content

Commit 8ebd41f

Browse files
add nav buttons and fix title (docker#15890)
1 parent 8773df7 commit 8ebd41f

File tree

10 files changed

+70
-49
lines changed

10 files changed

+70
-49
lines changed

_data/toc.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ guides:
2929
path: /get-docker/
3030
- sectiontitle: Get started
3131
section:
32-
- title: "Part 1: Getting started"
32+
- title: "Part 1: Orientation and setup"
3333
path: /get-started/
34-
- title: "Part 2: Sample application"
34+
- title: "Part 2: Containerize an application"
3535
path: /get-started/02_our_app/
3636
- title: "Part 3: Update the application"
3737
path: /get-started/03_updating_app/

get-started/02_our_app.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
title: "Sample application"
2+
title: "Containerize an application"
33
keywords: get started, setup, orientation, quickstart, intro, concepts, containers, docker desktop
44
redirect_from:
55
- /get-started/part2/
6-
description: overview of our simple application for learning docker
6+
description: Containerize and run a simple application to learn Docker
77
---
88

99

@@ -111,10 +111,12 @@ If you take a quick look at the Docker Dashboard, you should see your two contai
111111

112112
![Docker Dashboard with tutorial and app containers running](images/dashboard-two-containers.png)
113113

114-
## Recap
114+
## Next steps
115115

116-
In this short section, we learned the very basics about building a container image and created a
117-
Dockerfile to do so. Once we built an image, we started the container and saw the running app.
116+
In this short section, you learned the basics about building a container image and created a
117+
Dockerfile to do so. Once you built an image, you started the container and saw the running app.
118118

119-
Next, we're going to make a modification to our app and learn how to update our running application
120-
with a new image. Along the way, we'll learn a few other useful commands.
119+
Next, you're going to make a modification to your app and learn how to update your running application
120+
with a new image. Along the way, you'll learn a few other useful commands.
121+
122+
[Update the application](03_updating_app.md){: .button .primary-btn}

get-started/03_updating_app.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,15 @@ much easier than having to look up the container ID and remove it.
105105
![Updated application with updated empty text](images/todo-list-updated-empty-text.png){: style="width:55%" }
106106
{: .text-center }
107107

108-
## Recap
108+
## Next steps
109109

110-
While we were able to build an update, there were two things you might have noticed:
110+
While you were able to build an update, there were two things you might have noticed:
111111

112-
- All of the existing items in our todo list are gone! That's not a very good app! We'll talk about that
112+
- All of the existing items in your todo list are gone! That's not a very good app! You'll fix that
113113
shortly.
114-
- There were _a lot_ of steps involved for such a small change. In an upcoming section, we'll talk about
115-
how to see code updates without needing to rebuild and start a new container every time we make a change.
114+
- There were a lot of steps involved for such a small change. In an upcoming section, you'll learn
115+
how to see code updates without needing to rebuild and start a new container every time you make a change.
116116

117-
Before talking about persistence, we'll quickly see how to share these images with others.
117+
Before talking about persistence, you'll see how to share these images with others.
118+
119+
[Sharing the application](04_sharing_app.md){: .button .primary-btn}

get-started/04_sharing_app.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,16 @@ new instance that has never seen this container image! To do this, we will use P
9494
6. Click on the 3000 badge when it comes up and you should see the app with your modifications! Hooray!
9595
If the 3000 badge doesn't show up, you can click on the "Open Port" button and type in 3000.
9696
97-
## Recap
9897
99-
In this section, we learned how to share our images by pushing them to a registry. We then went to a
98+
## Next steps
99+
100+
In this section, you learned how to share your images by pushing them to a registry. You then went to a
100101
brand new instance and were able to run the freshly pushed image. This is quite common in CI pipelines,
101102
where the pipeline will create the image and push it to a registry and then the production environment
102103
can use the latest version of the image.
103104
104-
Now that we have that figured out, let's circle back around to what we noticed at the end of the last
105-
section. As a reminder, we noticed that when we restarted the app, we lost all of our todo list items.
106-
That's obviously not a great user experience, so let's learn how we can persist the data across
107-
restarts!
105+
Now you can circle back around to what you noticed at the end of the last
106+
section. As a reminder, you noticed that when you restarted the app, you lost all of your todo list items.
107+
That's obviously not a great user experience, so next you'll learn how you can persist the data across restarts!
108+
109+
[Persist the DB](05_persisting_data.md){: .button .primary-btn}

get-started/05_persisting_data.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,11 @@ need to have root access to access this directory from the host. But, that's whe
156156
>If you wanted to look at the actual contents of the Mountpoint directory, you would need to first get inside
157157
>of the VM.
158158
159-
## Recap
159+
## Next steps
160160

161-
At this point, we have a functioning application that can survive restarts! We can show it off to our investors and
162-
hope they can catch our vision!
161+
At this point, you have a functioning application that can survive restarts! You can show it off to your investors and hope they can catch your vision!
163162

164-
However, we saw earlier that rebuilding images for every change takes quite a bit of time. There's got to be a better
165-
way to make changes, right? With bind mounts (which we hinted at earlier), there is a better way! Let's take a look at that now!
163+
However, you saw earlier that rebuilding images for every change takes quite a bit of time. There's got to be a better
164+
way to make changes, right? With bind mounts (which was hinted at earlier), there is a better way!
165+
166+
[Use bind mounts](06_bind_mounts.md){: .button .primary-btn}

get-started/06_bind_mounts.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,13 +118,13 @@ all of the build tools and environments installed. With a single `docker run` co
118118
to go. We'll talk about Docker Compose in a future step, as this will help simplify our commands (we're already getting a lot
119119
of flags).
120120

121-
## Recap
121+
## Next steps
122122

123-
At this point, we can persist our database and respond rapidly to the needs and demands of our investors and founders. Hooray!
124-
But, guess what? We received great news!
123+
At this point, you can persist your database and respond rapidly to the needs and demands of your investors and founders. Hooray!
124+
But, guess what? You received great news! Your project has been selected for future development!
125125

126-
**Your project has been selected for future development!**
126+
In order to prepare for production, you need to migrate your database from working in SQLite to something that can scale a
127+
little better. For simplicity, you'll keep with a relational database and switch your application to use MySQL. But, how
128+
should you run MySQL? How do you allow the containers to talk to each other? You'll learn about that next!
127129

128-
In order to prepare for production, we need to migrate our database from working in SQLite to something that can scale a
129-
little better. For simplicity, we'll keep with a relational database and switch our application to use MySQL. But, how
130-
should we run MySQL? How do we allow the containers to talk to each other? We'll talk about that next!
130+
[Multi container apps](07_multi_container.md){: .button .primary-btn}

get-started/07_multi_container.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -281,15 +281,16 @@ no real indication that they are grouped together in a single app. We'll see how
281281

282282
![Docker Dashboard showing two ungrouped app containers](images/dashboard-multi-container-app.png)
283283

284-
## Recap
284+
## Next steps
285285

286-
At this point, we have an application that now stores its data in an external database running in a separate
287-
container. We learned a little bit about container networking and saw how service discovery can be performed
288-
using DNS.
286+
At this point, you have an application that now stores its data in an external database running in a separate
287+
container. You learned a little bit about container networking and service discovery using DNS.
289288

290289
But, there's a good chance you are starting to feel a little overwhelmed with everything you need to do to start up
291-
this application. We have to create a network, start containers, specify all of the environment variables, expose
290+
this application. You have to create a network, start containers, specify all of the environment variables, expose
292291
ports, and more! That's a lot to remember and it's certainly making things harder to pass along to someone else.
293292

294-
In the next section, we'll talk about Docker Compose. With Docker Compose, we can share our application stacks in a
293+
In the next section, you'll learn about Docker Compose. With Docker Compose, you can share your application stacks in a
295294
much easier way and let others spin them up with a single (and simple) command!
295+
296+
[Use Docker Compose](08_using_compose.md){: .button .primary-btn}

get-started/08_using_compose.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -352,12 +352,13 @@ for the entire app. The containers will stop and the network will be removed.
352352
Once torn down, you can switch to another project, run `docker compose up` and be ready to contribute to that project! It really
353353
doesn't get much simpler than that!
354354

355-
## Recap
355+
## Next steps
356356

357-
In this section, we learned about Docker Compose and how it helps us dramatically simplify the defining and
358-
sharing of multi-service applications. We created a Compose file by translating the commands we were
357+
In this section, you learned about Docker Compose and how it helps you dramatically simplify the defining and
358+
sharing of multi-service applications. You created a Compose file by translating the commands you were
359359
using into the appropriate compose format.
360360

361-
At this point, we're starting to wrap up the tutorial. However, there are a few best practices about
362-
image building we want to cover, as there is a big issue with the Dockerfile we've been using. So,
363-
let's take a look!
361+
At this point, you're starting to wrap up the tutorial. However, there are a few best practices about
362+
image building you should cover, as there is a big issue with the Dockerfile you've been using.
363+
364+
[Image-building best practices](09_image_best.md){: .button .primary-btn}

get-started/09_image_best.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,13 @@ COPY --from=build /app/build /usr/share/nginx/html
275275
Here, we are using a `node:12` image to perform the build (maximizing layer caching) and then copying the output
276276
into an nginx container. Cool, huh?
277277

278-
## Recap
278+
## Next steps
279279

280-
By understanding a little bit about how images are structured, we can build images faster and ship fewer changes.
281-
Scanning images gives us confidence that the containers we are running and distributing are secure.
282-
Multi-stage builds also help us reduce overall image size and increase final container security by separating
280+
By understanding a little bit about the structure of images, you can build images faster and ship fewer changes.
281+
Scanning images gives you confidence that the containers you are running and distributing are secure.
282+
Multi-stage builds also help you reduce overall image size and increase final container security by separating
283283
build-time dependencies from runtime dependencies.
284+
285+
In the next section, you'll learn about additional resources you can use to continue learning about containers.
286+
287+
[What next](11_what_next.md){: .button .primary-btn}

get-started/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,3 +187,11 @@ Refer to the following topics for further documentation on all CLI commands used
187187
- [docker image](../engine/reference/commandline/image.md)
188188
- [docker container](../engine/reference/commandline/container.md)
189189
190+
## Next steps
191+
192+
In this section, you installed Docker, learned about Docker, and learned about containers and images.
193+
194+
In the next section, you'll containerize your first application.
195+
196+
[Containerize an application](02_our_app.md){: .button .primary-btn}
197+

0 commit comments

Comments
 (0)