From 9950c06246acfd3224b14542a69c363bc55abcf6 Mon Sep 17 00:00:00 2001 From: Chuli jimmi Manurung Date: Sun, 13 Jun 2021 21:07:13 +0800 Subject: [PATCH] docs: Fix missing container id --- docs/tutorial/persisting-our-data/index.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/tutorial/persisting-our-data/index.md b/docs/tutorial/persisting-our-data/index.md index fcc772c..19bdcfa 100644 --- a/docs/tutorial/persisting-our-data/index.md +++ b/docs/tutorial/persisting-our-data/index.md @@ -54,7 +54,10 @@ What you'll see is that the files created in one container aren't available in a And look! There's no `data.txt` file there! That's because it was written to the scratch space for only the first container. -1. Go ahead and remove the first container using the `docker rm -f` command. +1. Go ahead and remove the first container using the `docker rm -f ` command. + ```bash + docker rm -f + ``` ## Container Volumes @@ -91,7 +94,7 @@ Every time you use the volume, Docker will make sure the correct data is provide docker volume create todo-db ``` -1. Stop the todo app container once again in the Dashboard (or with `docker rm -f `), as it is still running without using the persistent volume. +1. Stop the todo app container once again in the Dashboard (or with `docker rm -f `), as it is still running without using the persistent volume. 1. Start the todo app container, but add the `-v` flag to specify a volume mount. We will use the named volume and mount it to `/etc/todos`, which will capture all files created at the path. @@ -105,7 +108,7 @@ Every time you use the volume, Docker will make sure the correct data is provide ![Items added to todo list](items-added.png){: style="width: 55%; " } {: .text-center } -1. Remove the container for the todo app. Use the Dashboard or `docker ps` to get the ID and then `docker rm -f ` to remove it. +1. Remove the container for the todo app. Use the Dashboard or `docker ps` to get the ID and then `docker rm -f ` to remove it. 1. Start a new container using the same command from above.