From 78f514ef2fb9343bf8aa113182c03871b341e761 Mon Sep 17 00:00:00 2001 From: Stefan Scherer Date: Thu, 19 May 2022 16:13:50 +0200 Subject: [PATCH 1/2] Add command for M1/arm64 users Signed-off-by: Stefan Scherer --- get-started/06_bind_mounts.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/get-started/06_bind_mounts.md b/get-started/06_bind_mounts.md index 741f2ea978..ae5e12f204 100644 --- a/get-started/06_bind_mounts.md +++ b/get-started/06_bind_mounts.md @@ -58,6 +58,15 @@ So, let's do it! sh -c "yarn install && yarn run dev" ``` + If you are using an Apple Silicon Mac or another ARM64 device then use this command. + + ```bash + $ docker run -dp 3000:3000 \ + -w /app -v "$(pwd):/app" \ + node:12-alpine \ + sh -c "apk add --no-cache python2 g++ make && yarn install && yarn run dev" + ``` + - `-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 From 252818cfbd8452aa8dc1668d796c3c8aaf429843 Mon Sep 17 00:00:00 2001 From: Usha Mandya <47779042+usha-mandya@users.noreply.github.com> Date: Wed, 25 May 2022 15:10:33 +0100 Subject: [PATCH 2/2] Update get-started/06_bind_mounts.md --- get-started/06_bind_mounts.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get-started/06_bind_mounts.md b/get-started/06_bind_mounts.md index ae5e12f204..d6b54cb245 100644 --- a/get-started/06_bind_mounts.md +++ b/get-started/06_bind_mounts.md @@ -58,7 +58,7 @@ So, let's do it! sh -c "yarn install && yarn run dev" ``` - If you are using an Apple Silicon Mac or another ARM64 device then use this command. + If you are using an Apple silicon Mac or another ARM64 device, then use the following command. ```bash $ docker run -dp 3000:3000 \