mirror of https://github.com/docker/docs.git
Add command for ARM based chip. (#15748)
* Add command for ARM based chip. There is an example of command for ARM at the beginning but the second command is missing it.
This commit is contained in:
parent
52e1cd71fb
commit
2ceb39c6cc
|
@ -213,6 +213,19 @@ With all of that explained, let's start our dev-ready container!
|
|||
node:12-alpine \
|
||||
sh -c "yarn install && yarn run dev"
|
||||
```
|
||||
If you are using an ARM based chip, e.g. Macbook M1 Chips / Apple Silicon, then use this command.
|
||||
|
||||
```console
|
||||
$ docker run -dp 3000:3000 \
|
||||
-w /app -v "$(pwd):/app" \
|
||||
--network todo-app \
|
||||
-e MYSQL_HOST=mysql \
|
||||
-e MYSQL_USER=root \
|
||||
-e MYSQL_PASSWORD=secret \
|
||||
-e MYSQL_DB=todos \
|
||||
node:12-alpine \
|
||||
sh -c "apk add --no-cache python2 g++ make && yarn install && yarn run dev"
|
||||
```
|
||||
|
||||
If you are using Windows then use this command in PowerShell.
|
||||
|
||||
|
|
Loading…
Reference in New Issue