From 5f613c757a31ffbe1585e63491d19093afbde7a2 Mon Sep 17 00:00:00 2001 From: Chris Chinchilla Date: Wed, 1 Mar 2023 12:51:40 +0100 Subject: [PATCH] Draft --- .github/vale/Vocab/Industry/accept.txt | 2 ++ get-started/02_our_app.md | 2 +- get-started/03_updating_app.md | 2 +- get-started/05_persisting_data.md | 3 ++- get-started/06_bind_mounts.md | 2 +- get-started/index.md | 16 ++++++++-------- 6 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/vale/Vocab/Industry/accept.txt b/.github/vale/Vocab/Industry/accept.txt index 6c4b090737..e60c7921cf 100644 --- a/.github/vale/Vocab/Industry/accept.txt +++ b/.github/vale/Vocab/Industry/accept.txt @@ -64,3 +64,5 @@ XWiki Zsh macOS minikube +sandbox +sandboxed \ No newline at end of file diff --git a/get-started/02_our_app.md b/get-started/02_our_app.md index 66e5b3b2fa..4b7c8c122c 100644 --- a/get-started/02_our_app.md +++ b/get-started/02_our_app.md @@ -6,7 +6,7 @@ redirect_from: description: Containerize and run a simple application to learn Docker --- -For the rest of this guide, you will be working with a simple todo +For the rest of this guide, you'll be working with a simple todo list manager that's running in Node.js. If you're not familiar with Node.js, don't worry. This guide doesn't require JavaScript experience. diff --git a/get-started/03_updating_app.md b/get-started/03_updating_app.md index c7c19f2f53..b11a31a11f 100644 --- a/get-started/03_updating_app.md +++ b/get-started/03_updating_app.md @@ -83,7 +83,7 @@ To remove a container, you first need to stop it. Once it has stopped, you can r ### Remove a container using Docker Desktop 1. Open Docker Desktop to the **Containers** view. -2. Select the trash can icon under the **Actions** column for the old container that you want to delete. +2. Select the trash can icon under the **Actions** column for the old, currently running container that you want to delete. 3. In the confirmation dialog, select **Delete forever**.
diff --git a/get-started/05_persisting_data.md b/get-started/05_persisting_data.md index 2deb31aaeb..070c8d60b5 100644 --- a/get-started/05_persisting_data.md +++ b/get-started/05_persisting_data.md @@ -53,7 +53,8 @@ What you'll see is that the files created in one container aren't available in a $ docker run -it ubuntu ls / ``` - And look! There's no `data.txt` file there! That's because it was written to the scratch space for + In this case the command lists the files in the root directory of the container. + Look, there's no `data.txt` file there! That's because it was written to the scratch space for only the first container. 4. Go ahead and remove the first container using the `docker rm -f ` command. diff --git a/get-started/06_bind_mounts.md b/get-started/06_bind_mounts.md index ebbbac4031..a16888ec2b 100644 --- a/get-started/06_bind_mounts.md +++ b/get-started/06_bind_mounts.md @@ -6,7 +6,7 @@ keywords: > description: Using bind mounts in our application --- -In the previous chapter, we talked about and used a volume mount to persist the +In [part 5](./05_persisting_data.md), we talked about and used a volume mount to persist the data in our database. A volume mount is a great choice when you need somewhere persistent to store your application data. diff --git a/get-started/index.md b/get-started/index.md index bbfc4ff913..dd71205b4e 100644 --- a/get-started/index.md +++ b/get-started/index.md @@ -61,10 +61,10 @@ Welcome! We're excited that you want to learn Docker. This guide contains step-by-step instructions on how to get started with Docker. Some of the things you'll learn and do in this guide are: -- Build and run an image as a container -- Share images using Docker Hub -- Deploy Docker applications using multiple containers with a database -- Run applications using Docker Compose +- Build and run an image as a container. +- Share images using Docker Hub. +- Deploy Docker applications using multiple containers with a database. +- Run applications using Docker Compose. Before you get to the hands on part of the guide, you should learn about containers and images. @@ -73,10 +73,10 @@ Before you get to the hands on part of the guide, you should learn about contain Simply put, a container is a sandboxed process on your machine that is isolated from all other processes on the host machine. That isolation leverages [kernel namespaces and cgroups](https://medium.com/@saschagrunert/demystifying-containers-part-i-kernel-space-2c53d6979504), features that have been in Linux for a long time. Docker has worked to make these capabilities approachable and easy to use. To summarize, a container: -- is a runnable instance of an image. You can create, start, stop, move, or delete a container using the DockerAPI or CLI. -- can be run on local machines, virtual machines or deployed to the cloud. -- is portable (can be run on any OS). -- is isolated from other containers and runs its own software, binaries, and configurations. +- Is a runnable instance of an image. You can create, start, stop, move, or delete a container using the DockerAPI or CLI. +- Can be run on local machines, virtual machines or deployed to the cloud. +- Is portable (can be run on any OS). +- Is isolated from other containers and runs its own software, binaries, and configurations. ## What is a container image?