From 1ff0f71ea8dcdab0d7c0600839a8766d2a2b2b6d Mon Sep 17 00:00:00 2001 From: Akshay Agarwal Date: Sun, 9 May 2021 21:23:40 +0530 Subject: [PATCH] Add explanation for the bind mount operation The bind mount operation is explained in the Docker Desktop version of this tutorial but not for this PWD version. --- docs_en/tutorial/using-bind-mounts/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs_en/tutorial/using-bind-mounts/index.md b/docs_en/tutorial/using-bind-mounts/index.md index 3e5a372..b976d29 100644 --- a/docs_en/tutorial/using-bind-mounts/index.md +++ b/docs_en/tutorial/using-bind-mounts/index.md @@ -47,6 +47,7 @@ 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 - `node:10-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`,