From a2932698bd96021722e7187800692ad087cf6901 Mon Sep 17 00:00:00 2001 From: spicylentils <71917720+spicylentils@users.noreply.github.com> Date: Mon, 28 Sep 2020 17:01:39 -0700 Subject: [PATCH] Update docs/tutorial/using-bind-mounts/index.md Fix confusing wording regarding sources and destinations --- docs/tutorial/using-bind-mounts/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorial/using-bind-mounts/index.md b/docs/tutorial/using-bind-mounts/index.md index 072f32c..a645161 100644 --- a/docs/tutorial/using-bind-mounts/index.md +++ b/docs/tutorial/using-bind-mounts/index.md @@ -55,8 +55,8 @@ So, let's do it! ``` - `-dp 3000:3000` - same as before. Run in detached (background) mode and create a port mapping - - `-w /app` - sets the "working directory" or the current directory that the command will run from - - `-v "$(pwd):/app"` - bind mount the current directory from the host in the container into the `/app` directory + - `-w /app` - sets the container's present working directory where the command will run from + - `-v "$(pwd):/app"` - bind mount (link) the host's present working directory to the container's `/app` directory - `node:12-alpine` - the image to use. Note that this is the base image for our app from the Dockerfile - `sh -c "yarn install && yarn run dev"` - the command. We're starting a shell using `sh` (alpine doesn't have `bash`) and running `yarn install` to install _all_ dependencies and then running `yarn run dev`. If we look in the `package.json`,