mirror of https://github.com/docker/docs.git
Add command for M1/arm64 users
Signed-off-by: Stefan Scherer <stefan.scherer@docker.com>
This commit is contained in:
parent
9afff3c87d
commit
78f514ef2f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue